rsync doesn't delete unreferenced directories.
wayned at samba.org
Tue Nov 2 17:12:19 GMT 2004
On Mon, Nov 01, 2004 at 09:30:10PM -0600, Steve Sether wrote:
> I realize this behaviour is probbably by design but is there a way to
> get rsync to delete directories no longer being backed up?
Yes, it is by design since you just omitted the directory in the arg
list, and rsync can't assume it should delete args that don't get
mentioned on successive commands. Rsync only deletes inside directories
that it sends, so either put the items you want to backup into a single
directory and send that single directory (perhaps using excludes to
avoid sending too many dirs), or see the following message for how to
delete things remotely:
More information about the rsync