Re: How to exclude MULTIPLE directories in a rsync command ?
On Wed, 7 May 2008, Matthew Lincoln wrote:
> As I learned from the man page of rsync I can exclude a certain
> directory (trees) by using the --exclude option like in
>
> rsync .... --exclude=/proc ....
>
> But how do I exclude multiple directory (trees) at once in such a
> rsync command?
Use multiple "--exclude /path/to/unwanted/directory/" options.
rsync ... \
--exclude /proc/ \
--exclude /var/ \
--exclude /dummy/ \
...
This works well.
--
Nicolas
|