rdiff-backup rdiff مسانده is a popular, free, open source mirroring and incremental backup system for posix based operating systems like linux & Mac OS X. It uses rysnc algorithm through librsync but it doesn't use rsync. هو شعبي ، حرة ومفتوحة المصدر وتدريجيه تعكس الاحتياطيه للنظام القائم posix انظمة التشغيل مثل نظام تشغيل لينكس و ماك العاشر وهو يستخدم خوارزميه rysnc من خلال librsync ولكنها لا تستخدم rsync رسينك. The documentation of rdiff-backup focuses on push model for backup where client machines pushes their backup data to backup server. وثائق مسانده rdiff يركز على نموذج لدفع الاحتياطيه حيث يدفع الزبون على آلات النسخ الاحتياطي للبيانات لخدمة الاحتياطيه. This model is problematic when the backup server is on a well protected secure network behind a firewall. هذا النموذج هو اشكالية عندما يكون مركز الخدمة الاحتياطيه على تأمين حمايه جيدة لشبكة خلف جدار ناري. Client machines on external servers cannot easily connect to a machine behind firewall without punching a hole which reduces security of the system. آلات العملاء على الخدمة الخارجية لا يمكن بسهولة على ربط جهاز خلف جدار ناري دون الضرب ثقب مما يقلل من الامن للنظام. A better alternative is to use the pull model where the backup server requests for backup from client machine, at regular intervals, over secure ssh connection. افضل بديل هو استخدام نموذج الجذب فيها الاحتياطيه خادم طلبات العملاء من آلة النسخ الاحتياطي ، على فترات منتظمة ، أكثر أمنا ssh الصدد.

The steps are as follows: الخطوات هي كما يلي :
1. Create a account on the backup server just for backup purposes. انشاء حساب على النسخ الاحتياطي لمجرد خادم لاغراض النسخ الاحتياطي. I named mine backup. الاول اسمه الالغام الاحتياطيه. The account password should be disabled. الحساب كلمة السر ينبغي ان يكون والمعوقين. For example you might have the following entries in your passwd/shadow files: فعلى سبيل المثال قد تكون لديكم في البنود التالية الخاصة بك passwd / الظل الملفات :

/etc/passwd / الخ / passwd
backup:x:99:99:backup:/backup:/bin/false الاحتياطيه : x : 99:99 : النسخ الاحتياطي : / الاحتياطيه : / بن / كاذبة
/etc/shadow / الخ / الظل
backup:!!:12644:0:99999:7::: الاحتياطيه :!! : 12644:0:99999:7 : : :

A simple way is to create the account using useradd. هو طريقة بسيطة لانشاء حساب باستخدام useradd.

2. Setup الاعداد ssh to allow you to login without password ssh كما يتيح لك تسجيل الدخول دون كلمة السر from your backup server (backup account) to client machines which you want to backup. الاحتياطيه الخاصة بك من خادم (حساب الاحتياطيه) الى العميل الآلات التي تريد النسخ الاحتياطي.

3. Install rdiff-backup on your backup machine as well as on all the client machines تثبيت rdiff مسانده الاحتياطيه الخاصة بك على آله وكذلك على جميع العملاء وآلات

3. Create an ssh config alias, for each client machine, which defines how to contact client with the backup key. ايجاد ssh اعداد الإسم المستعار ، ولكل عميل الإله ، الذي يحدد كيفية الاتصال مع الزبائن الاحتياطيه الرئيسية. Place the following, per client machine, into /backup/.ssh/config: المكان التالية ، ولكل آلة العملاء ، الى / الاحتياطيه /.ssh / إعداد :

host client1-backup استضافة client1 مسانده
hostname client1 المضيف client1
user root المستخدم الجذر
identityfile /backup/.ssh/id_rsa identityfile / الاحتياطيه /.ssh / id_rsa
compression yes نعم ضغط
protocol 2 البروتوكول 2

4. Perform a test backup اداء اختبار الاحتياطيه
rdiff-backup client1-backup::/tmp client1-backup rdiff مسانده مسانده client1 : : / tmp client1 مسانده

5. Setup cron job for unattended daily backup الاعداد لعمل cron غير المشموله بالرعايه الاحتياطيه اليوميه

There is much more you can do to further customize the process. وهناك الكثير الذي يمكنك القيام به لاجراء المزيد من التخصيص لهذه العملية. However the steps above should get you started. غير أن الخطوات المذكورة اعلاه وينبغي ان تحصل على انك بدأته.