There were some reported non-functioning --delete flag when using rsync in syncronizing two filesystems/locations. This may occur due to failures or errors during rsync tries to sync zero size files. One simple work around for this is using --ignore-errors flag. Some examples for taking backup of user directory:
rsync -vaz -e ssh --delete --ignore-errors user@host:/home/user/ local_dir/
rsync -vaz --delete --ignore-errors /home/user/ /media/disk/backup_dir/
Showing posts with label backup. Show all posts
Showing posts with label backup. Show all posts
Wednesday, 15 October 2008
Thursday, 6 March 2008
Simple syncronization via ssh with rsync.
One can syncronize two different locations by using rsync via ssh or without ssh.
Here are the steps:
1. get from the other location
rsync -avuzb dir/mydir/ .
2. put into other location
rsync -Cavuzb . dir/mydir/
If one of the location is reachable via ssh then one ca write
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/
Look at the man pages for more details. Actually -e flag is not needed.
Here are the steps:
1. get from the other location
rsync -avuzb dir/mydir/ .
2. put into other location
rsync -Cavuzb . dir/mydir/
If one of the location is reachable via ssh then one ca write
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/
Look at the man pages for more details. Actually -e flag is not needed.
Subscribe to:
Comments (Atom)
