Hi Wayne, im using version 2.6.8 protocol version 29 and looks like the --delete-during parameter is not working correctly, if in the sender side server i delete a directory with files and directories into it after run rsync is not removing that directory/files on the receiver side. Any idea? btw: all the delete options is only to delete the receiver side? i mean using them will not delete the sender side? Thank you in advance!
On Sat, Nov 25, 2006 at 02:14:39PM -0300, Manuel Kissoyan wrote:> if in the sender side server i delete a directory with files and > directories into it after run rsync is not removing that > directory/files on the receiver side.I can only guess here since you don't supply any details of your run, but this is usually caused by someone using a wildcard (for example, "rsync -av --del /src/* host:/dest"), which does not send the src directory, and therefore no deletions can occur inside it. Just drop the wildcard (leaving the trailing slash) if that is the case.> btw: all the delete options is only to delete the receiver side? i mean > using them will not delete the sender side?That's right. The --remove-* options affect the sending side, and the --delete-* options the receiving side. ..wayne..
On Saturday 25 November 2006 19:14, Manuel Kissoyan wrote:> Hi Wayne,rsync@lists.samba.org != wayned (At least I hope so, for wayned's sanity.> im using version 2.6.8 protocol version 29 and looks like > the --delete-during parameter is not working correctly, if in the sender > side server i delete a directory with files and directories into it after > run rsync is not removing that directory/files on the receiver side. > > Any idea?Please tell us exactly what you're doing, i.e: + using an rsync daemon on machine A and/or B + and/or running an rsync command on machine B to synchronize data from A to B + and/or from B to A + and/or tunneling though SSH and executing a remote command without a server + etc etc> btw: all the delete options is only to delete the receiver side? i mean > using them will not delete the sender side?Please read the man page to understand what the delete options are doing. It only deletes differences between the two file lists. Since you would not use rsync to delete a local file (there are obviously much simpler ways to do that), the delete options should refer to files on the remote end, that do not exist on the machine initiating the transfer. -A