[PLUG] Copying to new host, excluding a directory tree

tomas.kuchta.lists at gmail.com tomas.kuchta.lists at gmail.com
Thu Jul 18 03:20:56 UTC 2019


 ... adding to this ...
you can use --exclude dirOrFileName multiple times - it will form a list

in this particular case: --exclude data would work too, but it would exclude all
other directories and files called data inside your recursive directory. This
can be handy, or not, depending on the situation.

-T

On Wed, 2019-07-17 at 16:08 -0700, Rich Shepard wrote:
> On Wed, 17 Jul 2019, Ben Koenig wrote:
> 
> > --exclude ~/data/
> 
> Thanks, Ben. I missed that option when I read the rsync man page.
> 
> Regards,
> 
> Rich
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug



More information about the PLUG mailing list