Rsync --delete does not work

Wayne Davison wayned at users.sourceforge.net
Tue Jul 23 13:29:01 EST 2002


On Tue, 23 Jul 2002, g dm wrote:
> rsync -a --delete * /data/exp_dir
> So, what did I do wrong?

You're sending a list of files, not a directory (since '*' is expanded
by the shell into a list of files).  The --delete option only works on
a directory-to-directory transfer, so try using this instead:

rsync -a --delete ./ /data/exp_dir

..wayne..





More information about the rsync mailing list