rsync : how to exclude specific files or folders ?
Matthew Flaschen
matthew.flaschen at gatech.edu
Sun Mar 1 00:48:33 UTC 2009
Vincent Trouilliez wrote:
> Oh ! After reading your mail, and re-re-re-reading the man page, I ventured into this:
>
> $rsync <options> --exclude '*.VirtualBox' --exclude '*.googleearth' <source> <destination>
>
> and it worked !
Yes, and if you want to switch from a chain of exclude parameters to a
file (e.g. if the command line starts getting long), you can just do:
rsync <options> --exclude-from=my_exclude_file <source> <destination>
And my_exclude_file is then just:
*.VirtualBox
*.googleearth
Exactly the same format.
Matt Flaschen
More information about the ubuntu-users
mailing list