[ale] rsync exclude list
Damon L. Chesser
damon at damtek.com
Thu Jul 1 06:39:49 EDT 2010
On Wed, 2010-06-30 at 21:19 -0400, Damon L. Chesser wrote:
> On Wed, 2010-06-30 at 21:05 -0400, Paul Cartwright wrote:
> > On Wed June 30 2010, Damon L. Chesser wrote:
> > > IIRC The exclude list is from the dir the file is located in. I hold
> > > an exclude.txt in /home/$USER and it is as follows:
> >
> > the files I'm dealing with are in /home/pbc/bin
> > rsync file & exclude list
> >
> > note the shell file( 1 line, it wraps):
> > rsync -varpltzo --exclude-from=/home/pbc/bin/dontrsync
> > 192.168.10.2:/home/pbc/Documents/ /home/pbc/Documents/
> >
> > is syncing /home/pbc/Documents to another computer - /home/pbc/Documents .
> >
> > I am trying to EXCLUDE the subfolder /home/pbc/Documents/software
>
> So, in the exclude file type in the path of the dir *relative* to the
> directory that the exclude file resides in. Assuming you keep the
> exclude text in the home dir it would be this:
>
> Documents/software
> Documents/software/
> Documents/software/*
>
> This gave me a fit trying to figure it out, a lucky google hit showed me
> the trick (assuming I remembered it correctly). The --exclude-from= has
> to be absolute, the files in the exclude file have to be relative to the
> directory containing the file. My memory could be faulty, but this is
> what I remember.
The OP emailed me off list: The above worked for him. Again, IIRC,
this is an obscure point of fact. The files in the exclude file need to
be listed in relative path format based off of the location of the
exclude file.
> >
> >
> > >
> > > .ssh
> > > .gconf
> > > .gconfd
> > > .gnome*
> > > Downloads/s
> > > .evolution
> > >
> > > Works for me.
> > >
> > > I suspect you need this:
> > >
> > > ../software/
> > >
> > > Assuming that /software is off of /home/pbc, ie, /home/pbc/software/
> >
> >
> >
>
>
--
Damon
damon at damtek.com
More information about the Ale
mailing list