Difference between revisions of "Rsync"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
rate limit 10000 Kbytes per second | rate limit 10000 Kbytes per second | ||
``` | ``` | ||
− | rsync -avz --recursive --bwlimit=10000 --relative -e ssh -p 22 -l influx-bkp --progress /var/lib/influxdb 10.x.x.x:/bkp/ | + | rsync -avz --recursive --bwlimit=10000 --exclude "hourly." --relative -e ssh -p 22 -l influx-bkp --progress /var/lib/influxdb 10.x.x.x:/bkp/ |
``` | ``` | ||
Revision as of 16:28, 9 June 2022
Backup Command
rate limit 10000 Kbytes per second
rsync -avz --recursive --bwlimit=10000 --exclude "hourly." --relative -e ssh -p 22 -l influx-bkp --progress /var/lib/influxdb 10.x.x.x:/bkp/
Backup example
rsync -avzSuc --recursive --relative --delete -e "ssh -p 22 -i /home/busk/.ssh/id_ed25519" --progress --files-from=files.dat / busk@10.64.41.23:/home/busk/rsync --include-from=includes.dat --exclude-from=excludes.dat
Use lxd container and lxc snapshots to manage state. You can use rdiff-backup command tool as well