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>
To limit bandwidth when transferring over Network.
OR
Limit Disk I/O when transferring between Disk.
Use “–bwlimit” switch. it is measured as “KBytes”
Following example limit 100 MB/s
rsync -avgop --progress --bwlimit=102400 /mnt/drive1 /mnt/driv2
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/