rsync : how to exclude specific files or folders ?

Vincent Trouilliez vincent.trouilliez at
Sun Mar 1 01:47:34 UTC 2009

On Sat, 28 Feb 2009 19:48:33 -0500
Matthew Flaschen <matthew.flaschen at> wrote:

> 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.

Ah ok, thanks, will keep that in mind.

Vince, sorted and happy.

More information about the ubuntu-users mailing list