Re: include and exclude file

2006-04-15 Thread Matt McCutchen
On Sat, 2006-04-15 at 14:05 -0400, Marc Collin wrote: > > Variant 1 (at each level, tell rsync not to stray from the path): > > > > + .kde/ > > - .* > > + .kde/share/ > > - .kde/* > > + .kde/share/apps/ > > - .kde/share/* > > + .kde/share/apps/kmail/ > > + .kde/share/apps/kwallet/ > > - .kde/share/

Re: include and exclude file

2006-04-15 Thread Marc Collin
Le Samedi 15 Avril 2006 11:39, Matt McCutchen a écrit : > This is a very common problem that people encounter with includes. If > you exclude .kde, rsync won't even go inside, so it won't notice > that .kde/share/apps/kmail is included. > > There are three solutions. I give example filter files

Re: include and exclude file

2006-04-15 Thread Matt McCutchen
On Sat, 2006-04-15 at 02:58 -0400, Marc Collin wrote: > would like to backup kmail and kwalet in my include file i do: > > .kde/share/apps/kmail/ > .kde/share/apps/kwallet/ This is a very common problem that people encounter with includes. If you exclude .kde, rsync won't even go inside, so it w

Re: include and exclude file

2006-04-14 Thread Matt McCutchen
On Fri, 2006-04-14 at 21:38 -0400, Marc Collin wrote: > OPTS="-a -r -v -p -t --delete-before --exclude-from=$EXCLUDE > --include-from=$INCLUDE" > > rsync don't copy my kde folder Earlier filters override later filters. Since you specify the exclude file before the include file, the exclude p

include and exclude file

2006-04-14 Thread Marc Collin
hi i try to include and exclude file when i do a rsync #!/bin/sh # directory to backup BDIR=/home/collinm/test/home # includes file - this contains a wildcard pattern per line of files to exclude INCLUDE=include.txt # excludes file - this contains a wildcard pattern per line of files to