I am trying to use rsync to automatically backup my personal files in /home/usr to an external drive.
Of course, my /home/usr directory contains a number of hidden files (for config, etc.), such as .adobe/, .cache/, etc. I would like to exclude these from my rsync backup, as well as temporary files.
However, I also have some .files and .directories I would like to keep, like .htaccess for some websites and app config files.
I am using this rsync command:
rsync -acuvz --delete --progress --exclude-from '/home/chase/rsync/Files-excludes.txt' /home/chase/ /media/chase/Files
And the contents of Files-excludes.txt
is:
/Dropbox
/Ubuntu\ One
/.*
*~
However, I'm afraid that this is going to exclude the mentioned .files and .directories, especially because the -a option recurses through subdirectories. Any insight?