rsync doesn't delete unreferenced directories.
paul at debian.org
Tue Nov 2 12:04:59 GMT 2004
On Mon 01 Nov 2004, Steve Sether wrote:
> I'm using rsync to backup multiple directories, i.e.
> rsync -azq --delete --relative /dog /cat /fish user at rsync-server::modulename
> Everything works fine, except if I remove a directory from the list of
> those being backed
> up, it isn't deleted on the other side. For example:
> I realize this behaviour is probbably by design but is there a way to
> get rsync to
> delete directories no longer being backed up?
Perhaps use --delete-excluded and --exclude the directory?
More information about the rsync