From: John H. <joh...@gm...> - 2008-06-26 19:32:24
|
That does work for me with one correction. I wrote; $local_rsync_short_args .= '-aE' if( $config_vars{'rsync_short_args'} =~ /E/ && $^O eq 'darwin' ); we always want to include the -a flag too. Thank you very much for your assistance. On Wed, Jun 25, 2008 at 4:10 PM, David Cantrell <da...@ca...> wrote: > John Hutchison wrote: > > For those of us using rsnapshot on Mac OS X we must use rsync with the > > -E or --extended-attributes flags to preserve both legacy resource forks > > and access control lists on files. Editing rsync_short_args works fine > > during the initial hourly.0 copy but rsnapshot doesn't seem to use > > custom flags during rotation clobbering the mac specific data. > > > > [19/Jun/2008:04:49:13] /usr/bin/rsync -a --delete --numeric-ids > > /Volumes/Data Backup/.snapshots/hourly.0/ /Volumes/Data > > Backup/.snapshots/hourly.1/ > > Is this the rsync that happens immediately after cp -al runs? If it is, > find this line in rsnapshot (it's near the beginning of the > sync_cleanup_after_native_cp_al subroutine): > > my $local_rsync_short_args = '-a'; > > and immediately after it add this: > > $local_rsync_short_args .= 'E' if( > $config_vars{'rsync_short_args'} =~ /E/ && > $^O eq 'darwin' > ); > > If that works for you, I'll commit it to CVS. > > -- > David Cantrell | Enforcer, South London Linguistic Massive > > I hate baby seals. They get asked to all the best clubs. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > rsnapshot-discuss mailing list > rsn...@li... > https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss > |