Quote:
Originally Posted by Dickster2
OK, then what options allow me I do this: rsync -apu --stats --delete-during --modify-window=2 dir /Volumes/disk
where "dir' already exists at /Volumes/disk BUT that target "dir" contains obsolete directories that are no longer defined in the source "dir"? Some of those obsolete directories are empty, and others are NOT empty. I want ALL obsolete directories, and their contents, to be deleted.
|
Just like you wrote it. When I try a command like that, it does just what you say you wanted.
Code:
$ rsync -apuv --delete-during dir1 destVol
sending incremental file list
dir1/
deleting dir1/ghi/
deleting dir1/def/def1
deleting dir1/def/
deleting dir1/abc/
Directories "abc/", "def/", and "ghi/" were present in destVol/, not in the source directory. Destination directory "destVol/def/" contained a file "def1". All were deleted.