Hello,

I'm using cwrsync (with rsync 2.6.9) via ssh to back up stuff from various client machines to a server.  Occasionally I would like to delete a particular file or folder from the server that still exists on the client (i.e., I'm no longer backing it up and I don't want it sitting on the server any more, but I do want to preserve it on the client box).

Below is a snip of my log.

I'm trying to delete C:\ba\myFile.ico from the server by using --delete-excluded and --exclude="/cygdrive/C/ba/myFile.ico"

I can see the file being hidden due to the --exclude, but the file doesn't get deleted from the server (I was thinking that the --delete-excluded should do this).

The man page for --delete-excluded says:
"In addition to deleting the files on the receiving side that are not on the sending side, this tells rsync to also delete any files on the receiving side that are excluded"

Any thoughts on where I might be going wrong here?  Or is there some other method for doing this (deleting a file or folder from the server that still exists on the client)?

Thanks!
Ben

Here's the log...

Tunnel: ssh
Command to run: "c:\cwRsync\bin\rsync.exe"  -vvv -R -r --delete-excluded --exclude="/cygdrive/C/ba/myFile.ico" /cygdrive/C/ba/myFile.ico rsync://[EMAIL PROTECTED]:9119/modName/BensComputer/
Tunnel command: ssh -F C:\mySSHDir\ssh_config -i "c:\cwRsync\identityFiles\my-key" -L 9119:127.0.0.1:873 [EMAIL PROTECTED] -T -N
Establishing secure channel ...
[client] add_rule(-s /cygdrive/C/ba/myFile.ico)
opening tcp connection to localhost port 9119
opening connection using --server -vvvrR --delete-excluded . modName/BensComputer/
building file list ...
[sender] make_file(/cygdrive,*,2)
[sender] make_file(/cygdrive/C,*,2)
[sender] make_file(/cygdrive/C/ba,*,2)
[sender] hiding file /cygdrive/C/ba/myFile.ico because of pattern /cygdrive/C/ba/myFile.ico
done
send_file_list done
send_files starting
send_files phase=1
send_files phase=2
send files finished
total: matches=0  hash_hits=0  false_alarms=0 data="">
sent 71 bytes  received 16 bytes  174.00 bytes/sec
total size is 0  speedup is 0.00
_exit_cleanup(code=0, file=main.c, line=977): about to call exit(0)
Terminating secure channel ...



-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to