PDA

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



shayantl
May 21st, 2019, 18:02
نصب 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-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 * * * * unison /var/www ssh://remote.machine.com//var/www &> /dev/null