Issues installing rsync 3.0.9 - Mountain Lion

Hello all,


I'm attempting to upgrade from rsync 2.6.9 to 3.0.9 on my 15" mid-2011 MacBook Pro, running 10.8.2. I'd like to install the latest version of rsync to backup to an external hard drive. I've used rsync to do this from 10.4 on, but in 10.8 it's (2.6.9) not making a bootable clone.


I have Xcode version 4.5 with Command Line Tools installed.


I've downloaded rsync-3.0.9.tar.gz and rsync-patches-3.0.9.tar.gz from rsync.samba.org.


From the helpful posting provided by "Tony T1" (see: rsync version 2.6.9 included very old, should be 3.0.9), I've attempted to install using the following info:



Download and unarchive rsync and its patches Move patches directory to rsync-3.0.9

cd rsync-3.0.9

Apply patches relevant to preserving Mac OS X metadata

patch -p1 <patches/fileflags.diff

patch -p1 <patches/crtimes.diff

Apply patch relevant to preserving Mac OS X hfs+compression

patch -p1 <patches/hfs-compression.diff

Configure, make, install ./prepare-source

./configure
make
sudo make install

Verify your installation rsync --version


I seem to be very close to success, but not quite there, as indicated by the following line when I run ./prepare-source:


Mountains-MacBook-Pro:rsync-3.0.9
make: Nothing to be done for `conf'.

If I proceed with the ./configure command, I get: rsync 3.0.9 configuration successful

However, "rsync --version" indicates it is still at 2.6.9.


Can someone tell me what I'm missing? I have a pdf of the attempt from Terminal if you'd care to take a look.

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on Oct 1, 2012 8:14 AM

Reply
26 replies

Oct 13, 2012 10:32 PM in response to iOS Geezer

You don't need to install all those patches, the most recent rsync has all the modern features for OSX. The reason it is not installed by default is a licensing conflict.


Once installed, it should be found at


/usr/local/bin/rsync


however the system path will still use the rsync at


/usr/bin/rsync


You CAN just delete the old rsync which forces OSX to use the newer rsync. But unfortunately every OSX update will replace the missing rsync and suddenly your script won't work. If you are running rsync in Terminal no problem, just set an alias pointing to the new rsync in .bash_profile. But is you are running rsync in a script, it will use the wrong version. In that case you will need to set the system path in file:


/private/etc/paths


In this file you move folder


/usr/local/bin


ahead of


/usr/bin


Reboot and it should be fixed persistently.

Dec 29, 2012 6:11 AM in response to BobHarris

I upgraded rsync a while ago with no issues. the trick is to leave the original rsync exactly where it is and put the upgraded version in /usr/local/bin/ (then make sure that /usr/local/bin is after /usr/bin in the $PATH variable). That way the system will continue to use the old version of rsync, and any new or updated scripts you make can be pointed to the new verion.

Dec 29, 2012 8:09 AM in response to Gnarlodious

Just as an update to this discussion, I am seeing more rsync errors all the time as OSX works in more ACLs and other new stuff I don't really understand. Just ignoring the errors for now, I don't know where rsync is going with all this new stuff.


Are you using the --extended-attributes (-E) on the default Mac OS X version or if using the latest OpenSource version are you using the --xattrs (-X).


Also if using the latest OpenSource rsync, are you also specifying --acl (-A) (Mac OS X version includes ACLs as part of --extended-attributes), and --perms (-p which you most likely are, as it is a common option, often included as part of --archive (-a).


Another question is what is your destination file system? Is it another Mac OS X HFS+ file system, or are you going over the net to a network attached storage (NAS) device, or a Unix system (Linux, Solaris, AIX, HP-UX, etc...), or a Windows system, or other? The destination may have issues of its own preserving all Mac OS X file attributes.


Message was edited by: BobHarris

Dec 29, 2012 3:10 PM in response to BobHarris

I am using -aAEXW so that should cover all the options you mentioned. The errors I see look like this:


rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)

and

ERROR: Library/Mobile Documents.11520494/com~apple~mail/Data/MailData/Signatures/ubiquitous_846A634C- 6CBF-4749-BF46-4CD295955C80.mailsignature failed verification -- update discarded.

and

Library/Mobile Documents.11520494/com~apple~mail/Data/MailData/Signatures/ubiquitous_846A634C- 6CBF-4749-BF46-4CD295955C80.mailsignature

971 100% 0.00kB/s 0:00:00 (xfer#612, to-check=1969/136533)

rsync: read errors mapping "~/Library/Mobile Documents.11520494/com~apple~mail/Data/MailData/Signatures/ubiquitous_846A634C- 6CBF-4749-BF46-4CD295955C80.mailsignature": Bad file descriptor (9)

WARNING: Library/Mobile Documents.11520494/com~apple~mail/Data/MailData/Signatures/ubiquitous_89C65664- 92C4-4278-90D0-C2EB24D2A083.mailsignature failed verification -- update discarded (will try again).


I'm not too worried about these errors, the important files are getting backed up.


Computer to server syncing works fine.

Jan 10, 2013 9:00 AM in response to Gnarlodious

best guess: these erors relate to storing one or two of your mail signatures related to specific emails to iCloud. That could mean that the emails are corrupt, or missing, or contain data that rsync doesn't know how to handle, or... You can figure out which signature(s) they are by following the path and opening the file in a text editor, but I why? Rebuild your mailboxes, or just just exclude that entire folder from your backups.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Issues installing rsync 3.0.9 - Mountain Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.