Re: Include and Exclude

2009-12-26 Thread Benjamin R. Haskell
On Thu, 24 Dec 2009, LuKreme wrote: > I thought this command would do what I wanted, but instead it doesn't > transfer any files: > > rsync -avh --stats --password-file=/var/rsync.passwd --include=Maildir/ > --exclude=* mail::root/usr/home /backup/usr/ > > I want to backup ONLY the /usr/home/*

Re: Include and Exclude

2009-12-25 Thread LuKreme
On Dec 24, 2009, at 10:32, Wayne Davison wrote: For instance, assuming that the Maildir is in the root of the transfer, this is better: --include=/Maildir/ --exclude=/* Well, it's not at the top level as I said. The Maildirs are in /usr/ home/*/Maildir/ and I want to sync them all and the

Re: Include and Exclude

2009-12-24 Thread Wayne Davison
On Thu, Dec 24, 2009 at 05:50:22AM -0700, LuKreme wrote: > rsync -avh --stats --password-file=/var/rsync.passwd --include=Maildir/ > --exclude=* mail::root/usr/home /backup/usr/ That will send the Maildir directory (without any content) if that directory exists in the root of the transfer. If yo

Include and Exclude

2009-12-24 Thread LuKreme
I thought this command would do what I wanted, but instead it doesn't transfer any files: rsync -avh --stats --password-file=/var/rsync.passwd --include=Maildir/ --exclude=* mail::root/usr/home /backup/usr/ I want to backup ONLY the /usr/home/*/Maildir directories. I don't want any other files

Re: include and exclude file

2006-04-15 Thread Matt McCutchen
rom splitting the argument in two. Write a filter file that contains all the includes from your include file (each preceded by +) and all the excludes from your exclude file (each preceded by -). Then use this filter file instead of the include and exclude files, not in addition to them. Usin

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

Re: trying to understand --include and --exclude

2005-12-02 Thread Phil Howard
On Sun, Nov 27, 2005 at 05:13:30PM -0500, Aaron Morris wrote: | I think you are trying to include too many things in a single | include/exclude statement. You need to break everything down to | files, folders, and sets of files in a single folder. For example, if | you want to transfer a file 3

Re: trying to understand --include and --exclude

2005-11-27 Thread Aaron Morris
On 11/27/05, Phil Howard <[EMAIL PROTECTED]> wrote: > I was under the impression that --include and --exclude worked by matching > patterns in the order given, and whichever matched first, whether that was > an include or exclude determined the action for that file. I have a big &

Re: trying to understand --include and --exclude

2005-11-27 Thread Wayne Davison
On Sun, Nov 27, 2005 at 11:10:39AM -0600, Phil Howard wrote: > --include '**/2005/07.tar.bz2' --exclude '**' Taken from the manpage: Note that, when using the --recursive (-r) option (which is implied by -a), every subcomponent of every path is visited from the top down, so includ

trying to understand --include and --exclude

2005-11-27 Thread Phil Howard
I was under the impression that --include and --exclude worked by matching patterns in the order given, and whichever matched first, whether that was an include or exclude determined the action for that file. I have a big directory from which I am attempting to transfer selected files. I want

Re: Include and Exclude

2005-06-16 Thread Wayne Davison
On Thu, Jun 16, 2005 at 10:00:07AM +0200, fRANz wrote: > rsync -avzHP --include "3.4/" --include "3.4/**" --include "4.0/" > --include "4.0/**" --exclude "*" --bwlimit=30 > rsync.example.foo::packages/centos/* . An easier way to do this is to use: --include=/3.4/ --include=/4.0/ --exclude='/*

Include and Exclude

2005-06-16 Thread fRANz
Hi guys, actually with this command: rsync -avzHP --include "3.4/" --include "3.4/**" --include "4.0/" --include "4.0/**" --exclude "*" --bwlimit=30 rsync.example.foo::packages/centos/* . i correctly rsync only 3.4 and 4.0 dirs of repository... I would like to rsync only dirs "xxx" and "yyy" fro