Discussion:
[rsnapshot-discuss] Multiple rsync args in +rsync_long_args
Joakim Jonsson
2010-08-13 00:40:27 UTC
Permalink
Hi

I don't seem to be able to set several "+rsync_long_args " on the "backup" line



I essentially need to do --chmod=u+rwX,go+rX but I keep getting Syntax error messages (no complaints about tabs) from rsnapshot -t daily.

I've tried a number of combitations e.g.:



backup ***@192.168.0.10:/cygdrive/c/media/test/ chrome/ +rsync_long_args=--chmod=u=rwX,chmod=go=rX



which seems completely analogous to the example supplied in the .conf file:

#backup ***@example.com:/home/ example.com/ +rsync_long_args=--bwlimit=16,exclude=core



It seems to be an escape problem, when i remove the ",chmod=go=rX" it works fine



Any idea on how to solve this?



Joakim
Oliver Soong
2010-08-13 20:20:56 UTC
Permalink
I had a similar problem, and also couldn't find a solution using
+rsync_long_args. My workaround was to set rsync_long_args to
explicitly include --chmod=u+rwX,go+rX in rsnapshot.conf. If you have
a complicated setup that requires different rsync_long_args for
different backups, you might want to look into having different conf
files (and maybe look into using include_conf).

Oliver
Matt McCutchen
2010-08-15 03:43:44 UTC
Permalink
Post by Joakim Jonsson
I don't seem to be able to set several "+rsync_long_args " on the "backup" line
I essentially need to do --chmod=u+rwX,go+rX but I keep getting Syntax
error messages (no complaints about tabs) from rsnapshot -t daily.
I think you've misunderstood the example. The "exclude" is an rsnapshot
option, not the rsync option missing its leading two dashes. Multiple
rsync options in rsync_long_args should be separated by spaces.
--
Matt
Continue reading on narkive:
Loading...