[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] rsync exclude list



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.
> 
> 
> >
> > .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