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

David Bridges dbridges at austin.rr.com
Thu Jul 18 13:37:18 UTC 2019


Exclusions can also be added to a file one per line,  When using a file
listing excluded files/directories you would add something like the
following to your command line.

--exclude-from='/some/directory/excludes.txt'

--
David

On Wed, 2019-07-17 at 23:20 -0400, tomas.kuchta.lists at gmail.com wrote:
>  ... 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
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug




More information about the PLUG mailing list