I have mounted a remote windows share (that will be where my backups to tape will be archiving).
I have 70GB of data that doesn't change that much, so I want to use RSYNC to mirror the data.
/usr/bin/rsync -rlptDv -e ssh --delete \ --exclude "*Locks" --exclude "tmp" --bwlimit=0 \ --modify-window=1 /cvs1/* localhost:/mnt/DUBBU01/Linux/Buzz/cvs1/
Now this works fine, in that no files are being updated. To be honest, the folder permissions done mean a damn, as these can be reset if i ever did have to restore from backup.
HOWEVER every single folder gets copied. Not their contents, just the folders. Is there a way to exclude folders containing data, but not the data itself?
The vast number of options in rsync is proving a pain to test this. And with about a million files, and a couple of hundred thousand directories, the ile build can take some time......