deletion those files from destination directory, that no longer exist in source directory.

Pawel null7 at wp.pl
Tue Apr 25 14:20:48 GMT 2006


Hallo
I thought that I need to use `--delete' option for that, but it looks like not.
Problem explanation:
prompt# ls  /tmp/dir1/ /tmp/dir2/
/tmp/dir1/:
fil1.txt

/tmp/dir2/:
fil1.txt  fil2.txt
prompt# rsync --delete /tmp/dir1/* /tmp/dir2/
prompt# ls  /tmp/dir1/ /tmp/dir2/
/tmp/dir1/:
fil1.txt

/tmp/dir2/:
fil1.txt  fil2.txt                      # fil2.txt still exists


My question is, whether is it a bug or I am mistaken ?

Greetings

ps. 
prompt# rsync -v
rsync  version 2.6.7  protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.


More information about the rsync mailing list