Pages

Saturday, January 30, 2010

File Synchronization

Opensource

Free for light useage

WinSCP

Using rsync
rsync -auz /src/foo hostB:/dest
rsync -auz hostB:/dest/foo /src

The first command pushes all the files that are newer on hostA to hostB. The second command will pull all the files that are newer on hostB to hostA. The critical options are: 
- when copying, you must preserve file modification times. "-a" does this and other things; if you want to preserve just the modification times, use "-t" instead.
- you must skip any files that are newer on the destination: "-u" does this.


No comments:

Post a Comment