Rsync 2.5.7 --delete not working!!!

jw schultz jw at pegasys.ws
Wed Dec 17 09:59:57 EST 2003


On Tue, Dec 16, 2003 at 06:53:54PM -0400, Wesley Joyce wrote:
> I am having a problem with rsync not deleting files on the destination that 
> no longer exist on the source.  The command I am using is: rsync -vaz 
> --delete /bantemp/* backenp650:/bantemp

I assume the files at issue are directly in /bantemp.
You have made a normal newbee mistake of having the shell
expand a wildcard where none was needed.

	rsync -vaz --delete /bantemp/ backenp650:/bantemp

Should do the trick.

> Once the two trees are in sync, if I add a file to the source, run rsync 
> again, it will copy over the one new file.  If I delete the file on the 
> source, run rsync, the file still exists on the destination.  I do not have 
> an exclude list and I am not running an rsync daemon.  I was having the 
> problem using rsync-2.5.4-1 (RPM from the AIX Linux Toolbox) so I removed 
> that and compiled 2.5.7 on AIX 5.2 in 64 bit mode using VAC 6.0.
> 
> running rsync returns -
> rsync  version 2.5.7  protocol version 26
> Copyright (C) 1996-2002 by Andrew Tridgell and others
> <http://rsync.samba.org/>
> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
>               no IPv6, 64-bit system inums, 64-bit internal inums
> 
> rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
> are welcome to redistribute it under certain conditions.  See the GNU
> General Public Licence for details.



-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt



More information about the rsync mailing list