| Sign In/My Account | View Cart |
| Article: |
Automated Backups on Tiger Using rsync | |
| Subject: | rsync to, e.g., Linux server with -E | |
| Date: | 2005-07-24 01:04:31 | |
| From: | iikka | |
|
The rsync with -E (--extended-attributes) does not work directly with stock rsync included in most Linux distros. This is confirmed by the rsync man pages for the rsync on Tiger, which state the following: -E, --extended-attributes Apple specific option to copy extended attributes, resource forks, and ACLs. Requires at least Mac OS X 10.4 or suitably patched rsync.
curl -O http://samba.org/ftp/rsync/old-versions/rsync-2.6.3.tar.gz(This is the version supplied with Mac OS 10.4, the patch may well work on newer versions, but I haven't tried that.)
curl -O http://www.opensource.apple.com/darwinsource/10.4.1/rsync-20/patches/EA.diff 3. Unpach the rsync source tar -zxvf rsync-2.6.3.tar.gz 4. Move to the unpacked directory and apply the patch cd rsync-2.6.3 && patch <../EA.diff 5. Configure & compile ./configure && make 6. Install (as root to replace the current rsync installation) su All this takes less than 10 min. It requires, that you have root access to the Linux box, though. I made an alias like the following: alias syncme rsync -vaE --exclude=Trash --exclude=Library/Caches
|
||
Showing messages 1 through 3 of 3.
--exclude=Library/Caches option will skip cache files, which are huge and do not require backing up. This can be incorporated into the original command as:rsync -aE --delete exclude=Library/Caches ~ /Volumes/FW200/Backups--exclude=Library/Caches/, with a trailing "/", to include the (admittedly, unlikely) case of a Library file named "Caches"?rsync -aE --delete --exclude=Library/Caches ~ /Volumes/FW200/Backups
as the default appears to be to not enable