-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
rsync -vai --exclude=ccc/ --delete /valut/test[12] dest:/store/
On 02/10/13 11:19, Lee Eric wrote:
> Hi mate,
>
> Thanks for your reply. However, I think there's more common
> scenario I will encounter.
>
> SRC:
>
> dir: /vault/test1 file: /vault/t
Hi mate,
Thanks for your reply. However, I think there's more common scenario I
will encounter.
SRC:
dir: /vault/test1
file: /vault/test1/aaa
file: /vault/test1/bbb
file: /vault/test1/ccc
dir: /vault/test2
dir: /vault/test3
dir: /vault/test4
dir: ...
file: ...
DEST:
dir: /store
file: /store/xx
If you really want to exclude /vault/test1/ccc, and for /vault/test2
to end up at /store/test2, then I would suggest:
rsync -avz --exclude /test1/ccc src:/vault/ dest:/store
rsync -avz src:/vault/test2 dest:/store
that runs rsync over ssh.
Note that the trailing slash on the "src" argument in th
Hi,
I have 2 servers. One is data source I call is SRC and another one is
for DEST data receive, DEST. Here's what I need to accomplish:
SRC:
dir: /vault/test1
file: /vault/test1/aaa
file: /vault/test1/bbb
file: /vault/test1/ccc
dir: /vault/test2
DEST:
dir: /store
file: /store/xxx
==>
Fi