[lug] excluding directories with rsync

Dan Ferris dan at usrsbin.com
Wed Oct 11 16:14:27 MDT 2006


I use --exclude-file= and then a file with the list of stuff to exclude.

It takes files or directories.

Dan

Paul Nowosielski wrote:
> Dear All,
>
> I'm trying to setup an rsync script to push data from a dev box to a live box.
>
> The files live in different directories under /var/www
>
> I need to exclude 5 of the directories and their content from being 
> propagated.
>
> I've found a command to exclude files but not directories.
>
> Does anyone know of a command or switch to do this?
>
> Thank you,
>
>   

-- 
Build a man a fire and warm him for a night.  Set a man on fire and warm him for the rest of his life.

I'm not lazy.  I just hang out a lot.




More information about the LUG mailing list