[Bug 8336] --implied-dirs should include the file-list root by default

samba-bugs at samba.org samba-bugs at samba.org
Mon Aug 8 09:09:41 MDT 2011


--- Comment #9 from andras.porjesz at ericsson.com 2011-08-08 15:09:41 UTC ---
(In reply to comment #8)
> (In reply to comment #7)
> > I cannot imagine any use for avoiding attribute preservation on that
> > particular directory.
> That's weird, because that has been the desired behavior in all the cases I
> have ever used the option.  If I'm copying a particular set of files, I don't
> want effects outside of the files I specify.  I might not even have permissions
> to tweak the root dir in a situation where a particular set of subdirs was
> created for me (e.g. a copy of my home subdir).  The current method lets me
> choose to include it or not.  Making it mandatory takes away the user's choice.
>  The parent dir may not even be the same dir, e.g. /path1/./some/path
> /path2/./another/one -- in such a case, which dir should be the root of the
> transfer?  With the current method, the user can choose one, should they so
> desire.
> As for being unable to specify the permissions that get set on the created
> directory, that is true for all instances where the destination directory gets
> created when it is outside the transfer (e.g. rsync -ai file1 file2 dest), so
> is not something that directly pertains to --relative.  In fact, the --relative
> option gives us one way affect it, should we want to do so: rsync -aiR ./file1
> ./file2 dest.

so if you want to copy a particular set of files (owned by several users) and
you want to have the same permissions on the receiver side you must set the
permission of the root to the same as it was (and when newly created).
Otherwise you may also make the copy unavailable to the original user.
It is not related anyhow to the --relative flag.
Noone requested it to be mandatory, it would be much better to implement a new
flag. By default it will do nothing (like now), but by setting it rsync will
take care of a few more permissions.
To implement this feature outside of rsync will degrade the performance of the
syncing process significantly.

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list