понеделник, 15 декември 2008 г.

simple rsync with ssh rsyncd.conf

Right synt is:

rsync -av --rsh="ssh" *.* sshuser at host.com:/full_path

--safe-links - do not follow links otside copied tree


/etc/rsyncd.conf:
motd file = /etc/motd
max connections = 25
syslog facility = local3

# rsync -a rbm.myftp.org::backup /root/routers/backups/rbm/ >/dev/null 2>&1
# RSYNC_PASSWORD=userpass rsync -a user@host.mine.com::backup /local dir/

[backup]
comment = Backup area
path = /backup
read only = yes
list = yes
uid = nobody
gid = nobody
auth users = user
secrets file = /etc/rsyncd.secrets

/etc/rsyncd.secret
user:userpass

It's important:
chmod 600 /etc/rsyncd.secrets

Няма коментари: