Torsten, I'm not sure if you understood what David Cantrell is trying
to
say.
I hope it did understand him right
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.
And wants to preserve modes - not what i want to do.
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).
But still wants to set modes - right?
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).
To me its worth it - in my special case the destination does not support
it, but i want still make use of rsnapshot, which is possible giving
explicit arguments to cp, not to preserve modes or owner or group.
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).
Hm the man page does not mention that this assumption (--a argument) is
a "must-have" to apply to any environment to make use of the tool.
I can confirm that it does not break or mess up something and it does
not do silly things. It does also use hard links confirmed via stat call
- so its exactly doing what it should but without preserving modes or
owner/group.
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.
It does work using suitable arguments to cp to support the backup
destination, thats all. Patched it and it works like expected - so why
should is use a self-made perl script to copy, link, rsync stuff is
theres such a good tool called rsnapshot which can be used if cp args
are tweaked?
------------------------------------------------------------------------------
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
