This is an old revision of the document!
with status and Common variable
rsync –verbose –progress –stats –compress –recursive –times –perms –links <source> <destination> (location is defined as [hostname]::path)
SSH Wrapper allows to transfer files using rsync over SSH.
Mostly usefull when dont have Rsyncd not running and have only access over ssh.
rsync -av -e "ssh -l testet" <source> <destination>
define rsync mount point in rsyncd.conf
[root] path = /srv/www/htdocs secrets file = /etc/rsyncd/rsync.secret auth users = htdocs read only = false write only = true list = false
rsyncusr:password123
NOTE :
Define script for rsync OR run it from command line.
#!/bin/sh export RSYNC_PASSWORD=password123 /usr/local/bin/rsync -az --delete --exclude='.*' /srv/www/htdocs/ rsync://rsyncusr@rsync.host.com/root/