Tiger's rsync anomalies I'm trying to sort out some anomalies using rsync locally. Booted to Volumes/LaCie_Disk_A I create a full direct clone with: sudo asr -erase -source /Volumes/Mirrored_HD_Set -target /Volumes/LaCie_Disk_B then boot to it and check it out. Then booted back to Mirrored_HD_Set I do a little other work (i.e. some files are changed). Then for a differential update of the clone (again booted to LaCie_Disk_A) I use (first three lines are echos): SOURCE: /Volumes/Mirrored_HD_Set/ DESTINATION: /Volumes/LaCie_Disk_B STDOUT: /Users/Chinook/Desktop/DiffCloneStdout_20050818_221827 sudo rsync -axHEvv --delete $SOURCEREF $DESTVOL_MP > $DCSTDOUT When I do so, I always get the first error below and once got the second error. rsync: rename "/Volumes/LaCie_Disk_B/System/Library/CoreServices/.BootX.AZBM0z" -> "System/Library/CoreServices/BootX": Operation not permitted (1) rsync: delete_one: unlink "/Volumes/LaCie_Disk_B/Volumes/._LaCie_Disk_B" failed: No such file or directory (2) If I boot to the clone (LaCie_Disk_B) everything seems OK and the files I know I changed are up to date, but I'm not yet ready to trust this updated clone. Can anyone shed any light on how either my approach is wrong or the errors I'm getting from rsync? Thanks Lee C
In my first post I explained how I did a full direct clone to another HD using asr and was trying to use rsync for a differential update of the clone but was getting an error I didn't understand the reason for. I thought maybe I misunderstood the H option so I took it out, but still got the following error (on the second differential update, never the first): rsync: rename "/Volumes/LaCie_Disk_B/System/Library/CoreServices/.BootX.ItPCZ0" -> "System/Library/CoreServices/BootX": Operation not permitted (1) rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-20/rsync/main.c(717) Then I added an excludes file and after adding /System/Library/CoreServices/* to the excludes file the error went away. Now my excludes file contains: /tmp/* /proc /Network/* /Volumes/* /private/cores/* /System/Library/CoreServices/* /.Spotlight-V100/* /Users/*/.Trash /Users/*/Library/Caches /dev/* /afs/* /automount/* /.TemporaryItems/* /private/tmp/* /private/var/run/* /private/var/tmp/* /private/var/vm/* /private/var/spool/postfix/* and I run rsync with (first 4 lines echos): SOURCE: /Volumes/Mirrored_HD_Set/ DESTINATION: /Volumes/LaCie_Disk_B EXCLUDES FILE: /Users/Chinook/ShellScripts/diffcloneEXCLUDES rsync STDOUT: /Users/Chinook/Desktop/DiffCloneStdout_20050820_015129 sudo rsync -axEuvv --delete --exclude-from=$EXCLUDES $SOURCEREF $DESTVOL_MP > $DCSTDOUT Even though the error went away, I don't understand why it did not originally appear until the second differential update with rsync and I'm not sure if I'm disrupting the consistency of the clone with any of the excludes I now have. I can boot to the clone, but I'm unsure yet of doing the ultimate test in restoring the clone to my working volume. Would someone with a more intimate knowledge of the file system and rsync please fill me in a little more on why I was getting the error from rsync and if (given my rsync excludes list) now the clone should be safe to restore without introducing problems? I know the original full direct clone is safe before using rsync. Thank you, Lee C Dual 2.5 PM G5 OS X 10.4.2 rsync on Tiger is version 2.6.3 protocol version 28 And yes I've read the man pages numerous times and searched the web (especially ADC) looking for clarification.
I create a full direct clone with asr and am working at differentially updating that clone with rsync. The main problem I have is that unless (in rsync) I exclude at least /System/Library/CoreServices/* I get the rsync error: rsync: rename "/Volumes/LaCie_Disk_B/System/Library/CoreServices/.BootX.ItPCZ0" -> "System/Library/CoreServices/BootX": Operation not permitted (1) rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-20/rsync/main.c(717) Occurs on the second (not the first) and following differential clones with rsync. No material that I can find suggests excluding /System/Library/CoreServices/* no doubt with good reason, but I do already have it on the clone from the full asr clone. My concern is if anything might change in /System/Library/CoreServices/* in-between full clones that I should catch in the differential update to maintain the consistency of the clone (consistency of system information - not directory vs actual data). I use asr for the full clone because with the device level block transfers is is so much faster. Is there onother work-around? Thank you, Lee C Dual 2.5 PM G5 OS X 10.4.2 rsync on Tiger is version 2.6.3 protocol version 28
Wayne Davison wrote:>On Mon, Aug 22, 2005 at 09:57:13AM -0400, Lee Cullens wrote: > > >>Where I am unclear is if in not using -H a hard link, (i.e. a >>duplicate directory entry for a file) will result in duplicated files? >> >> > >Yes, all separate filenames will be separate files without -H. > >..wayne.. > > >Thanks for all your help and patience Wayne. Lee C