Using rsync with extended attributes

7 January 2008

The command rsync is like a network aware copy program, and it is designed to replicate every part of the original file (ownership, group membership, etc.). It also transfers only the portions of the file that are necessary - so a slight change in a file on one host means a minimal network transfer to the other host.

However, rsync has had problems preserving extended attributes such as the Finder data and resource forks from MacOS X. Kyle Crawford has done an excellent write-up on the state of MacOS X extended attributes support in rsync 3.0.0-pre7 (a prerelease of 3.0), and it looks like the problems with rsync may be over. This is indeed good news. He used a tool called backup-bouncer to verify the MacOS X metadata; this tool looks very useful.

Kyle also has an excellent entry on his attempts to use rsync on MacOS X up to that point.

The traditional way to get all of this data on MacOS X was to use the ditto command line utility, but rsync now seems to be improving to where ditto may not be necessary (or perhaps it is…).

The rsync 3.0.0-pre7 release (as well as the current rsync-2.6.9 release) is available for download at the rsync download page. There are also important security advisories for rsync daemons in versions 2.6.6 and older; upgrade to the latest release version (2.6.9).

Entry Filed under: MacOS X. Tags: , , , , .

3 Comments Add your own

  • 1. TomL  |  7 January 2008 at 9:25 am

    I have enjoyed reading this blog since I first found it, and I’m always impressed by the breadth of topics and platforms covered.

  • 2. ddouthitt  |  7 January 2008 at 10:26 am

    Thanks for the kind words, Tom! I try to cover things which others do not, and to interconnect with the larger Web so others don’t have to search for information - to collect information all into one place.

    I’ve always liked UNIX, no matter which one…

  • 3. hictio  |  7 January 2008 at 7:09 pm

    Same here!
    And, once again, many thanks for ’screen’.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


David Douthitt

David is an experienced UNIX and Linux system administrator, a former Linux distribution maintainer, and author of two books ("Advanced Topics in System Administration" and "GNU Screen: A Comprehensive Manual"). View David Douthitt's profile on LinkedIn

Recent Posts

Top Posts

RSS Sharky's Column!

Calendar

January 2008
M T W T F S S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Recent Comments

bharat on The Demise of the HP-UX System…
H4mm3r on Avoiding catastrophe!
Vladimir on Argument list too long?
ddouthitt on The UNIX find command and…
Mihir G joshi on The UNIX find command and…

Category Cloud

BSD Career Debian Debugging Fedora FreeBSD HPUX Learning Linux MacOS X Mind Hacks Mobile Computing NetBSD Networking OpenBSD OpenSolaris Open Source OpenVMS Personal Notes Portable Presentations Red Hat Scripting Security Solaris Tips Ubuntu UNIX Wheel Group Windows

Archives

Feeds

Links