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.

No comments:

(c) Copyright 2008-2024 Mehmet Suzen (suzen at acm dot org)

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License