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