Pages

Wednesday, November 18, 2009

Synching Two Directories

In Linux or even in from windows there is a need to synchornize two folders.

We can do that by using the tool rsync
From windows one can do it by using the cygwin shell.

start the rsync daemon on the remote machine

rsync --daemon

rsync -a --progress -v -r -t -h -i -e ssh source/directory user@host:destination/directory

If one needs to automate this periodically add this to the crontab

No comments:

Post a Comment