Monday, May 16, 2011

Syncing with rsync

psyncX that I have been using does not work on Snow Leopard.
Since I am also in search for network storage, then probably just ditch psyncX and go for bare-bone rsync, which is supposedly network-aware compared to pysnc.

Here is the command line:

rsync -aNHAXxvuP --fileflags --forcechange --exclude='.DS_Store' /src /dst

a equals -rlptgoD
N preserve createtimes
H preserve hardlinks
A preserve ACLs
X preserve xattr
x don't cross file system
v verbose
u skip files that are newer on the receiver
P equals --partial --progress, i.e., shows progress, and don't delete partially synced files when command is interrupted (to be resumed later)

when done, do the other way around (flip /src and /dst) to get synced both way.

This set of options makes rsync passed bbouncer test.

No comments:

Post a Comment