On Fri, Jun 03, 2011 at 08:12:20PM +0200, Torsten Krah wrote:
So don't use link_dest. If you don't use that *and* you don't have
cmd_cp, then rsnapshot will do its own internal version of 'cp -al'.
Internal or external doesn't matter, its the options which are wrong in
my case.
Torsten, I'm not sure if you understood what David Cantrell is trying to
say. If you don't use cmd_cp then rsnapshot will not use cp at all.
Instead it will use some internal perl code which recursively copies
each symlink, file, and directory.
Another thing you can try is running rsnapshot as a non-root user (if
you are not already doing that). The internal alternative to cp (when
you don't use cmd_cp) avoids trying to set the owner if you are not
running with uid 0 (root).
I don't think its worth trying to make rsnapshot give different arguments
to cp (or putting a wrapper script to change the arguments). Rsnapshot
is built around the assumption of using cp -al (or something equivalent)
to preserve permission modes (and usually owners/groups).
If you break that assumption, who knows what kind of mess you will end
up with (and even if it seems to be working it might be doing something
silly behind the scenes like not using hard links).
If disabling cmd_cp and/or running as a non-root user are not enough to
get rsnapshot working in your environment, then perhaps rsnapshot is not
the right tool for your environment.
--
___________________________________________________________________________
David Keegel <djk < at > cyber.com.au> Cyber IT Solutions Pty. Ltd.
http://www.cyber.com.au/~djk/ Linux & Unix Systems Administration
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
