--delete option is not working for me. The following is a minimal example.
$ mkdir box1 box2
$ touch box1/letter box2/extra
$ rsync -a -vv box1/ box2/
sending incremental file list
delta-transmission disabled for local transfer or --whole-file
letter
total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 92 bytes received 34 bytes 252.00 bytes/sec
total size is 0 speedup is 0.00
$ tree box1 box2
box1
`-- letter
box2
|-- extra
`-- letter
As can bee seen from tree output, the file box2/extra is not deleted. I
think the expected behavior is that box2/extra should be deleted. (rsync
version 3.0.3 protocol version 30 on Ubuntu 8.10. Example done on a
reiserfs partition)
Here's output with more verbose options
$ rsync -a -vvv box1/ box2/
sending incremental file list
[sender] make_file(.,*,0)
[sender] make_file(letter,*,2)
send_file_list done
send_files starting
server_recv(2) starting pid=4777
recv_file_name(.)
recv_file_name(letter)
received 2 names
recv_file_list done
get_local_name count=2 box2/
generator starting pid=4777
delta-transmission disabled for local transfer or --whole-file
recv_generator(.,0)
recv_files(2) starting
send_files(0, box1/.)
recv_generator(.,1)
recv_generator(letter,2)
letter is uptodate
send_files(2, box1/letter)
generate_files phase=1
send_files phase=1
recv_files(.)
recv_files(letter)
recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=0
recv_files phase=2
generate_files phase=3
recv_files finished
generate_files finished
sent 56 bytes received 18 bytes 148.00 bytes/sec
total size is 0 speedup is 0.00
_exit_cleanup(code=0, file=main.c, line=1058): about to call exit(0)
$ rsync -a -vvvv box1/ box2/
cmd=<NULL> machine=<NULL> user=<NULL> path=box2/
cmd[0]=. cmd[1]=box2/
note: iconv_open("UTF-8", "UTF-8") succeeded.
(Server) Protocol versions: remote=30, negotiated=30
(Client) Protocol versions: remote=30, negotiated=30
sending incremental file list
[sender] make_file(.,*,0)
[sender] make_file(letter,*,2)
[sender] flist start=1, used=2, low=0, high=1
[sender] i=1 box1 ./ mode=040755 len=72 uid=1000 gid=1000 flags=5
[sender] i=2 box1 letter mode=0100644 len=0 uid=1000 gid=1000 flags=0
send_file_list done
file list sent
send_files starting
server_recv(2) starting pid=4836
uid 1000(fj) maps to 1000
process has 8 gids: 4 20 24 46 108 123 124 1000
gid 1000(fj) maps to 1000
recv_file_name(.)
recv_file_name(letter)
received 2 names
[receiver] flist start=1, used=2, low=0, high=1
[receiver] i=1 0 ./ mode=040755 len=72 gid=1000 flags=5
[receiver] i=2 1 letter mode=0100644 len=0 gid=1000 flags=0
recv_file_list done
get_local_name count=2 box2/
generator starting pid=4836
delta-transmission disabled for local transfer or --whole-file
recv_generator(.,0)
send_files(0, box1/.)
recv_files(2) starting
recv_generator(.,1)
recv_generator(letter,2)
letter is uptodate
send_files(2, box1/letter)
generate_files phase=1
send_files phase=1
touch_up_dirs: . (0)
recv_files(.)
recv_files(letter)
recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=0
recv_files phase=2
generate_files phase=3
recv_files finished
generate_files finished
client_run waiting on 4836
sent 56 bytes received 18 bytes 148.00 bytes/sec
total size is 0 speedup is 0.00
_exit_cleanup(code=0, file=main.c, line=1058): entered
_exit_cleanup(code=0, file=main.c, line=1058): about to call exit(0)
--
View this message in context:
http://www.nabble.com/--delete-not-working-%28minimal-example%29-tp24481809p24481809.html
Sent from the Samba - rsync mailing list archive at Nabble.com.