I am working on an rsync backup script and I cannot get includes and excludes to work properly. I basically want to exclude everything except some things I want to backup. I created an include.txt file and it I started with just one file.
I am trying to run the command outside of the script to get it to work first, but here it is
Any thoughts on what I am doing wrong here? Thanks
Code:
/Users/johnc/test.txt
I am trying to run the command outside of the script to get it to work first, but here it is
Code:
rsync -av --include-from 'include.txt' --exclude '*' / /Volumes/Backup
Any thoughts on what I am doing wrong here? Thanks