Use rsync over ssh

Keep remote directories in sync is a good use for this. Below will synch remote host (source_host) directory with localhost /home/tom:
rsync -ave ssh [--delete] source_host:/home/mike/ /home/tom/

Use the –delete switch if you want to syncrhonize source deletes as well.

Advertisements

Comments are closed.

%d bloggers like this: