Thursday, January 28, 2010

New RSYNC for Mac Extended Attributes

If you want to rsync files between Mac's you will need a patched version of rsync. This will preserve the "extended" attribute stuff.

Download

http://samba.anu.edu.au/ftp/rsync/rsync-3.0.7.tar.gz
http://samba.anu.edu.au/ftp/rsync/rsync-patches-3.0.7.tar.gz

cd /usr/local/src

tar -zxvf ~/Downloads/rsync-3.0.7.tar.gz
tar -zxvf ~/Downloads/rsync-patches-3.0.7.tar.gz

cd rsync-3.0.7

Apply patches relevant to preserving Mac OS X metadata
patch -p1 patch -p1
Configure, make, install
(note: creation times are not preserved in x64, so…)
./prepare-source
CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure
CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 make
sudo make install

Verify your installation
rsync --version

By default, rsync will be installed in /usr/local/bin. If that isn't
in your path, you will need to call your new version of rsync by its
absolute path (/usr/local/bin/rsync).

http://discussions.apple.com/thread.jspa?threadID=2199780&tstart=0

No comments: