PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : نصب Unison File Synchronizer



shayantl
June 7th, 2019, 17:31
نصب Unison File Synchronizer
سلام
مراحل رو به ترتیب اجرا کنید:

apt-get install unison


pico /root/.unison/default.prf
مطابق زیر پر کنید.

# skip asking for confirmations on non-conflicting changesauto=true # the user interface will ask no questions at allbatch=true # Unison will request an extra confirmation if it appears that the entire replica has been deletedconfirmbigdeletes=true # Unison will use the modification time and length of a file as a `pseudo inode number' when scanning replicas for updates, instead of reading the full cont$fastcheck=true # the group attributes of the files are synchronizedgroup=true # the owner attributes of the files are synchronizedowner=true # prefer newer version of files in case of conflictsprefer=newer # the textual user interface will print nothing at all, except in the case of errors.silent=true # file modification times (but not directory modtimes) are propagated.times=true

یک ssh key بسازید.

ssh-keygen -t dsa


ssh-copy-id -i .ssh/id_dsa.pub user1@remote.machine.com

unison /var/www ssh://remote.machine.com//var/www

هر 5 دقیقه سینکرونایز میکند:

*/5 * * * * unison /var/www ssh://remote.machine.com//var/www &> /dev/null

هر سوالی داشتید در خدمتم