On 09/18/14 02:14, Jouni Kosonen wrote:
Joseph wrote:
I like to use meld to copy file but meld does now preserve ownership of
the file that it copy. rsyc does but how do I use rysnc to copy let say
file that are newer then certain date ?
I was trying to use:
find /home/myuser/oldir/* -mtime -60 -exec cp {} /home/myuser/newdir/ \;
but cp does not preserve file ownership either.
I was planning on copying hylafax-files (faxes) from one server to another
and most of those files have ownership "uucp:60002 or "uucp:uucp"
From "man cp":
...
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,
timestamps), if possible additional attributes: context,
links, xattr, all
Might I suggest a pattern here? ;-)
---
Jouni
Thank, missed that :-/
--
Joseph