Re: why rsync wants to delete destination files

2010-08-07 Thread Henrique de Moraes Holschuh
On Sat, 07 Aug 2010, T o n g wrote: > I.e., "--delete-before" is the default action. It only affect the files > to be copied over. Nothing else. rsync --delete a b c d 192.168.1.99:/tmp/ could remove a b c or d from /tmp in 192.168.1.99, if they don't exist in the source location. If a, b, c or

Re: why rsync wants to delete destination files

2010-08-06 Thread T o n g
Thanks for your replay Sam. On Fri, 06 Aug 2010 22:47:57 -0500, Sam Leon wrote: > --delete-before will delete everything in the destination directory that > is not in the source directory. As you sure about this? >From man page: --delete-beforereceiver deletes before transfer (defa

Re: why rsync wants to delete destination files

2010-08-06 Thread Sam Leon
On 08/06/2010 10:41 PM, T o n g wrote: > Hi, > > I believed that rsync wouldn't delete existing destination files unless > instructed so (by --delete-excluded). However, while debugging a > (mysterious) bug, > http://thread.gmane.org/gmane.linux.file-systems.aufs.user/2821/focus=2827 > I now sus

why rsync wants to delete destination files

2010-08-06 Thread T o n g
Hi, I believed that rsync wouldn't delete existing destination files unless instructed so (by --delete-excluded). However, while debugging a (mysterious) bug, http://thread.gmane.org/gmane.linux.file-systems.aufs.user/2821/focus=2827 I now suspect that the rsync command used in the script was t