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.

Wednesday, May 11, 2011

In search of reliable backup and sync solution for Mac

I got several Macs to use, and need to have mostly same set of files on them.
I may not have some or all of them physically on the same location, so copying via LAN is not a solution.

I thought I found the solution: Amazon S3 + ExpanDisk + rsync + sparse image

(Ideally the solution should be Amazon S3 + s3fs + MacFUSE + rsync + sparse image, but latest s3fs requires new version of FUSE, while MacFUSE is in abandoned state, still using older FUSE)

BUT ... loading and accessing the image file over the net was painfully slow and unstable.