SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
You need "--relative" for abso
Author Message
Post You need "--relative" for abso 
EXPLANATION

http://samba.anu.edu.au/ftp/rsync/rsync.html

Scroll down to "EXCLUDE PATTERNS", then read the paragraph discussing
"--relative".


CODE CHANGE

In rsnapshot perl script,

-----

my $global_default_rsync_long_args = '--delete --numeric-ids';

-----

should now read

-----

my $global_default_rsync_long_args = '--delete --numeric-ids --relative';

-----


NEW CONF SYNTAX

exclude home/foo/bar/gorp
backup /home/foo/bar/gorp/ /localhost

Note that the backup point path is no longer appended to the
destination.

Sorry for the terse email -- I'm sleepy :)

--
Sourav K. Mandal
http://sourav.net/



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post You need "--relative" for abso 
I've been having a lot of problems with SourceForge lists lately, so
here's the message I sent to rsnapshot-discuss, just-in-case:

***********

EXPLANATION

http://samba.anu.edu.au/ftp/rsync/rsync.html

Scroll down to "EXCLUDE PATTERNS", then read the paragraph discussing
"--relative".


CODE CHANGE

In rsnapshot perl script,

-----

my $global_default_rsync_long_args = '--delete --numeric-ids';

-----

should now read

-----

my $global_default_rsync_long_args = '--delete --numeric-ids --relative';

-----


NEW CONF SYNTAX

exclude home/foo/bar/gorp
backup /home/foo/bar/gorp/ /localhost

Note that the backup point path is no longer appended to the
destination.

Sorry for the terse email -- I'm sleepy :)

--
Sourav K. Mandal
http://sourav.net/
--
Sourav K. Mandal
Department of Physics
University of California - Berkeley
Berkeley, CA 94720-7300

E-mail: Sourav.Mandal < at > berkeley.edu

Post You need "--relative" for abso 
Sourav,

Your use of --relative here is interesting. It definitely seems to
simplify exclusion rules.

I'd hate to just unleash this on unsuspecting users as a default, as it
would break their existing configurations (something I have tried to
avoid doing at all costs). However, if it turns out to be a better
solution all around, perhaps it could be the default for the next major
upgrade, like 1.2.0 or something.

Also, if anyone wants to experiment with this without modifying the
source code, you can change this in rsnapshot.conf as well.

Simply change the following line in rsnapshot.conf, around line 110 in
the default example (the plus and minus at the beginning are just to
show the differences, and not to be included in the config file):

- #rsync_long_args --delete --numeric-ids
+ rsync_long_args --delete --numeric-ids --relative

-Nathan

Sourav K. Mandal wrote:

CODE CHANGE
In rsnapshot perl script,

-----

my $global_default_rsync_long_args = '--delete --numeric-ids';

-----

should now read

-----

my $global_default_rsync_long_args = '--delete --numeric-ids --relative';

-----




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB