23 августа 2012 г.

Rsync

cat /usr/local/etc/rsyncd.conf:

pid file = /var/run/rsyncd.pid

[mysite]
        path = /usr/local/www/mysite
        comment = www.test.ru
        auth users = backupuser123
        secrets file = /etc/rsyncd.secrets
        read only = no
        uid = root
        gid = wheel



rsync -avz --stats [email]backupuser123@xx.xx.xx.xx[/email]::mysite /root/work-levantuev