1 |
On 09/18/14 02:14, Jouni Kosonen wrote: |
2 |
>Joseph wrote: |
3 |
> |
4 |
>> I like to use meld to copy file but meld does now preserve ownership of |
5 |
>> the file that it copy. rsyc does but how do I use rysnc to copy let say |
6 |
>> file that are newer then certain date ? |
7 |
>> |
8 |
>> I was trying to use: |
9 |
>> find /home/myuser/oldir/* -mtime -60 -exec cp {} /home/myuser/newdir/ \; |
10 |
>> |
11 |
>> but cp does not preserve file ownership either. |
12 |
>> |
13 |
>> I was planning on copying hylafax-files (faxes) from one server to another |
14 |
>> and most of those files have ownership "uucp:60002 or "uucp:uucp" |
15 |
>> |
16 |
> |
17 |
>From "man cp": |
18 |
>... |
19 |
> |
20 |
> -p same as --preserve=mode,ownership,timestamps |
21 |
> |
22 |
> --preserve[=ATTR_LIST] |
23 |
> preserve the specified attributes (default: mode,ownership, |
24 |
> timestamps), if possible additional attributes: context, |
25 |
> links, xattr, all |
26 |
> |
27 |
> |
28 |
>Might I suggest a pattern here? ;-) |
29 |
>--- |
30 |
>Jouni |
31 |
|
32 |
Thank, missed that :-/ |
33 |
|
34 |
-- |
35 |
Joseph |