1

The man page for rsync suggests that I should be able to write

-/ /home/me/foo

in exclude.foo and then run

rsync -a --exclude-from exclude.foo /any/path/ /dest/

and have /home/me/foo excluded, but I cannot seem to get it to work (the path is copied).

Does that syntax exclude absolute paths?

1

The exclude should look like this

- foo

& the rsync CMD should look like this

rsync -a --exclude-from=exclude.filter /home /dest

Hope this was helpful.

  • Please fix the formatting – raacer Apr 13 '17 at 1:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.