I would split the problem you are facing with the above rsync command into two rsync commands.
The rsync command as shown creates real files when it encounters symlinks and, as noticed, you will end up with files that aren't removed.
Why not use one rsync command to back up your home directory (including safe simlinks) and one rsync command to back up the data that is outside your home directory.
safe simlinks are those that stay inside the tree:
- A link from
/home/chriscrutch/foo to
/home/chriscrutch/Tmp/foo is safe
- A link from
/home/chriscrutch/bar to
/data/chriscrutch/bar is unsafe.
You could use something like this to back up your home directory:
Code:
rsync -a -v --delete -D --partial --safe-links /home/chriscrutch /media/truecrypt1
And something similar for the real location of Documents.