--force --delete

Eric Echter echter at mchsi.com
Sat Mar 8 04:37:24 EST 2003

We are having problems with the --force --delete options not removing some
files/directories on the backup server.  The options seem to work fine until
a snapshot of the files/directories are taken. We have a backup script that
runs daily on each server and the backups are made to a remote machine on
the same network.  The following is the exact rsync command we are using
(IPs switched) for the "home" filesystem:

/usr/local/bin/rsync -zaHlv --force --delete --progress -e /usr/bin/ssh
/home 2>>$error_log

We also have a script on the backup server that runs weekly creating a
snapshot of each backup.  Basically, the script just creates links to files
on the full backup so that's where I thought the problem may be.  I read
the --force option would remove directories even if it was replaced by a
link, but that doesn't seem to be working as you can see I added the --force
option to the rsync command.  I would greatly appreciate any assistance in
the matter and will provide any other information if needed.  Thank you.


More information about the rsync mailing list