# نسخ النسخ الاحتياطية إلى خادم آخر باستخدام rsync و cron

**URL:** <https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346>\
**Category:** Sysadmins\
**Tags:** how-to\
**Created:** [30 يوليو 2019، 1:17ص UTC](https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346 "2019-07-30T01:17:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![johncs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johncs/32/135871_2.png) [@johncs](https://meta.discourse.org/u/johncs)\
**Post date:** [17 أغسطس 2024، 10:23م UTC](https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346/3 "2024-08-17T22:23:35Z")

</div>

> [@Bathinda](#):
>
> > [@johncs](#):
> >
> > Edit `/etc/passwd` and replace `www-data`’s shell with `/bin/bash` rather than `/usr/sbin/nologin`.
> 
> ماذا يفعل ما سبق؟

يسمح للمستخدم `www-data` بتسجيل الدخول بنجاح. هذا يغير “shell تسجيل الدخول” وهو مصطلح رئيسي جيد للبحث عنه لمعرفة المزيد.

> [@Bathinda](#):
>
> > [@johncs](#):
> >
> > Add the backup server’s SSH key to `/home/www-data/.ssh/authorized_keys`.
> 
> هل تقصد المفتاح العام هنا؟

نعم. يجب (بشكل أساسي) عدم نسخ المفاتيح الخاصة/مشاركتها في أي مكان خارج جهازها المضيف.

---

_[View the full topic](https://meta.discourse.org/t/copy-backups-to-another-server-with-rsync-and-cron/124346)._
