I am trying to backup a partition on my laptop to a connected external hdd. I would also like to exclude two directories.
Using rsync I've tried
rsync -av /Stuff/ /media/disk/backup --exclude=/Stuff/Dropbox --exclude=/Stuff/OSs
This will rsync but does not exclude the two folders. I have googled the problem but most things deal with remote servers, and I can't sort out what I need.
All help gratefully received.
Last edited by donkeyotay (2012-07-08 15:16:42)
Thanks for the reply. That was what I was doing wrong. I removed /Stuff/ and it works
for a local usage one should probably use --times as well, for example;
rsync --times -rvh --progress --exclude-from /absolute/path/exclude.txt /from/my/hdd/folder/ /to/my/usb/folder/
I have tested this and next update is uberfast (you know like 0.0001 ms).
(and perhaps --perms?, unless thats already fixed with -a switch?)
where /absolute/path/exclude.txt may look like
*.pek Adobe Premiere Pro Preview*
Last edited by brontosaurusrex (2012-08-25 12:27:11)