1 |
On Friday 25 November 2005 22:44, Joseph wrote: |
2 |
> How to make "--delete" work with rsync over ssh? |
3 |
|
4 |
By telling rsync to delete. |
5 |
|
6 |
> When I do "rsync" I want it to delete files on destination if they are |
7 |
> not present on source: |
8 |
> |
9 |
> example: |
10 |
> rsync -av ssh --delete source/ |
11 |
> joseph@10.0.0.101:/home/joseph/destination |
12 |
> I get: |
13 |
> building file list ... link_stat "/home/joseph/ssh" failed: No such file |
14 |
> or directory |
15 |
|
16 |
Yep, that's exactly what you should see. |
17 |
You've told rsync to copy ssh and source to |
18 |
joseph@10.0.0.101:/home/joseph/destination |
19 |
rsync has defaulted to ssh for ages now, but to force it you have to specify |
20 |
the remote shell. |
21 |
|
22 |
-- |
23 |
Mike Williams |
24 |
-- |
25 |
gentoo-user@g.o mailing list |