I am successfully using rsync to backup my mac, however upon backing up my documents folder I found that I just had to many things I needed to exclude so I wanted to switch from regular --exclude to --exclude-from=file.txt
My problem is that when I try to exclude from a file I get a "No such file or directory" error and I don't understand why. Here's an actual output:
I also get that same error if I use the ~ to specify my home folder. There is no difference.
Please help.
My problem is that when I try to exclude from a file I get a "No such file or directory" error and I don't understand why. Here's an actual output:
Code:
My-MacBook-Pro:~ username$ rsync -arvn --del --exclude-from='/Volumes/Mac\ Data/Users/username/Documents/exclude_doc.txt' ~/Documents/ root@192.168.0.150:/volume1/documents/
rsync: failed to open exclude file /Volumes/Mac\ Data/Users/gustavlothe/Documents/exclude_doc.txt: No such file or directory (2)
rsync error: error in file IO (code 11) at /SourceCache/rsync/rsync-40/rsync/exclude.c(1005) [client=2.6.9]
I also get that same error if I use the ~ to specify my home folder. There is no difference.
Please help.