I am setting up rsyncrypto to create a backup of my user directory. I read that to exclude directories I need to exclude with find and pipe to rsyncrypto.
I am trying to exclude all .svn directories from getting encrypted and synced.
Here is the find command I'm using. I don't see any .svn directories in the output:
find ~/Documents -type d ( -name .svn ) -prune -o -print
But when I pipe the output to rsyncrypto I see lots of .svn directories getting encrypted.
find ~/Documents -type d ( -name .svn ) -prune -o -print | rsyncrypto -vc --trim=3 --filelist - /tmp/Documents/ Documents.keys backup.crt
Can someone help me rewrite the command to exclude from rsyncrypto any files/folders that have .svn in their path?