sudo / --link-dest combination problem.

Wayne Davison wayned at samba.org
Fri Jun 17 15:41:21 GMT 2005


On Fri, Jun 17, 2005 at 12:32:06AM -0700, simon allfrey wrote:
> works fine if I run it myself, however if it is run as root the --
> link-dest fails and all files are recreated rather than linked to.

For files to be hard-linked together, they must be exactly the same in
all preserved attributes.  If you previously ran the script as a normal
user, some files were probably created with either the wrong user or the
wrong group from the originals (compared with what would be produced by
a run as root).  I would assume that this would solve itself going
forward because the root-run files would match other root-run files.

..wayne..


More information about the rsync mailing list