Matthias Schniedermeyer wrote:
- I don't see what your problem is
----  
    It doesn't work as they thought it would?

    That said -- the man page says under "-u":

        -u, --update                skip files that are newer on the receiver

    Technically, directories are not files.  Since you used the "-a" mode
you stated that you wanted owner+group, symlinks, _times_, special files
to all be synchronized.  Since -u is documented to only work on files,
it seems correct.


But i can only repeat myself. Rsync works unidirectional.
----
rsync uses a bidirection protocol.  Perhaps you mean the changes
only happen on 1 side?

 You either copy something or not. Preserving a newer mtime 
on target would have to 
be activly done by rsync, which doesn't fall under 
"that is unidirectional".
----
Then how does "-u" work with files?  If what you say is true, then
how would you preserve a newer mtime on the files on the target?

That is what "-u" does.  Yet you claim this is impossible because
it isn't unidirectional? 

I.e. From a technical standpoint, what would prevent any inode
being treated the same with respect to "--update"?  All inodes
have "times" associated with them.  Which times may be platform
specific, but within limitations of each platform -- what prevents
the "-u" that works on a file 'inode' from working on a directory 'inode'?

Honestly -- it surprises me that -u only applies to files
where it could apply to any inode.  I can understand if it
isn't implemented on a platform where it doesn't work, but
otherwise... that's odd

Of note: though equally odd...gnu "cp -au" works
similarly:

Ishtar:/tmp> tree -guD src dst
src
|-- [law      lp       Jan 21  9:35]  one
`-- [law      lp       Jan 21  9:32]  two
dst
|-- [law      tty      Jan 21 10:00]  one
`-- [law      tty      Jan 21  9:32]  two
> cp -au src/. dst/.
Ishtar:/tmp> tree -guD src dst
src
|-- [law      lp       Jan 21  9:35]  one
`-- [law      lp       Jan 21  9:32]  two
dst
|-- [law      lp       Jan 21  9:35]  one
`-- [law      lp       Jan 21  9:32]  two

Their manpage also only refers to files:

       -u, --update
              copy only when the SOURCE file is  newer  than  the  destination
              file or when the destination file is missing




-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to