Re: OS X xattr troubles (was Re: --exclude patterns)

2008-01-31 Thread Mike Bombich
On Jan 30, 2008, at 11:03 PM, Anthony Morton wrote: I have a similar problem. I'm trying to specify a custom per- directory filter using --filter='dir-merge .rsync-filter-m' but because the whole thing is double-quoted the filter rule arrives in single quotes. I can't simply leav

OS X xattr troubles (was Re: --exclude patterns)

2008-01-30 Thread Anthony Morton
I have a similar problem. I'm trying to specify a custom per- directory filter using --filter='dir-merge .rsync-filter-m' but because the whole thing is double-quoted the filter rule arrives in single quotes. I can't simply leave out the quotes here because the --filter option onl

Re: --exclude patterns

2008-01-30 Thread Anthony Morton
The shell does not strip the single quotes because they are inside double quotes. Thus, rsync is getting filter patterns containing single quotes, which would obviously prevent the filters from matching. You can just remove the single quotes, but then the shell will try to expand the wildca

Re: --exclude patterns

2008-01-30 Thread Matt McCutchen
On Thu, 2008-01-31 at 15:30 +1100, Anthony Morton wrote: > >> The shell does not strip the single quotes because they are inside > >> double quotes. Thus, rsync is getting filter patterns containing > >> single quotes, which would obviously prevent the filters from > >> matching. > >> You can

Re: --exclude patterns

2008-01-30 Thread Matthew Stier
Matt McCutchen wrote: On Mon, 2008-01-28 at 15:00 -0800, Randy Dunlap wrote: Sorry about the missing information. Here's the script, which still isn't working. Any help/suggestions would be wonderful. --- ~Randy #! /bin/sh # rsync /test/runs/ to $server:~rdunlap/pub/kerneltest/reports/r

Re: --exclude patterns

2008-01-29 Thread Matt McCutchen
On Mon, 2008-01-28 at 15:00 -0800, Randy Dunlap wrote: > Sorry about the missing information. Here's the script, > which still isn't working. > > Any help/suggestions would be wonderful. > --- > ~Randy > > > #! /bin/sh > # rsync /test/runs/ to $server:~rdunlap/pub/kerneltest/reports/runs/ > >

Re: --exclude patterns

2008-01-28 Thread Randy Dunlap
On Sat, 26 Jan 2008 10:27:03 -0800 Wayne Davison wrote: > On Fri, Jan 25, 2008 at 06:02:07PM -0800, Randy Dunlap wrote: > > rsync --include='/test/runs/***' \ > > --exclude='--exclude=/test/runs/? --exclude=/test/runs/?? > > --exclude=/test/runs/??? --exclude=/test/runs/1???' \ > > -avz -e ssh --

Re: --exclude patterns

2008-01-26 Thread Wayne Davison
On Fri, Jan 25, 2008 at 06:02:07PM -0800, Randy Dunlap wrote: > rsync --include='/test/runs/***' \ > --exclude='--exclude=/test/runs/? --exclude=/test/runs/?? > --exclude=/test/runs/??? --exclude=/test/runs/1???' \ > -avz -e ssh --progress --delete $srcdir $dest:$destdir/ Firstly, the weird optio

Re: --exclude patterns

2008-01-26 Thread Jon
*' \ > --exclude='--exclude=/test/runs/? --exclude=/test/runs/?? > --exclude=/test/runs/??? --exclude=/test/runs/1???' \ > -avz -e ssh --progress --delete $srcdir $dest:$destdir/ > > Should this work? If so, maybe I just have some quoting problems... > If not, how do I need t

--exclude patterns

2008-01-26 Thread Randy Dunlap
st have some quoting problems... If not, how do I need to modify the include/exclude patterns? TIA. --- ~Randy -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: include/exclude patterns to copy just certain files?

2004-07-07 Thread Bob Proulx
Wayne Davison wrote: > Bob Proulx wrote: > > rsync -a --include '*/' --include '**/a1/foo' --exclude "*" . example.com:/tmp/ > > Yes, that is the way to use include/exclude without first figuring > out where all the foo files are. As you noted that results in all > directories in the tree being

Re: include/exclude patterns to copy just certain files?

2004-07-05 Thread Wayne Davison
On Sat, Jul 03, 2004 at 05:25:05PM -0600, Bob Proulx wrote: > rsync -a --include '*/' --include '**/a1/foo' --exclude "*" . example.com:/tmp/ Yes, that is the way to use include/exclude without first figuring out where all the foo files are. As you noted that results in all directories in the t

include/exclude patterns to copy just certain files?

2004-07-03 Thread Bob Proulx
I am attempting to copy only certain files down a directory tree. I know which files I want. I could generate a file of just those with 'find'. But having read the docs I have been trying to use the --include and --exclude patterns to have rsync pick the right files itself. But I ca

Re: [patch] exclude patterns documentation

2003-06-05 Thread jw schultz
On Wed, Jun 04, 2003 at 02:59:59AM -0700, jw schultz wrote: > I just reviewed the EXCLUDE PATTERNS section of the manpage > and found that the declarative portion never actually states > that only the part of the path that is relative destination > is compared. > > I'm not

[patch] exclude patterns documentation

2003-06-04 Thread jw schultz
I just reviewed the EXCLUDE PATTERNS section of the manpage and found that the declarative portion never actually states that only the part of the path that is relative destination is compared. I'm not quite satisfied with my text on this so if anyone has a better way of stating it i'

Re: Trouble with include/exclude patterns

2003-02-06 Thread Anand Buddhdev
On Thu, Feb 06, 2003 at 01:58:28AM -, Max Bowsher wrote: > >> --include .mozilla > >> --include .mozilla/arb/ > >> --exclude .mozilla/arb/* > >> --include .mozilla/arb/kfgj0v2y.slt/ > >> --include .mozilla/arb/kfgj0v2y.slt/bookmarks.html > >> --include .mozilla/arb/kfgj0v2y.slt/prefs.js > >> -

Re: Trouble with include/exclude patterns

2003-02-05 Thread Wayne Davison
On Thu, Feb 06, 2003 at 01:58:28AM -, Max Bowsher wrote: > It would copy nothing from arb, surely? Sorry, I meant to say that it might copy more from .mozzilla than just arb, but a re-edit ruined that thought. > I don't think .mozilla was in rpm: You're right, I missed that. Duh. Hopefully

Re: Trouble with include/exclude patterns

2003-02-05 Thread Max Bowsher
Wayne Davison wrote: > On Thu, Feb 06, 2003 at 01:17:34AM -, Max Bowsher wrote: >> --include .mozilla >> --include .mozilla/arb/ >> --exclude .mozilla/arb/* >> --include .mozilla/arb/kfgj0v2y.slt/ >> --include .mozilla/arb/kfgj0v2y.slt/bookmarks.html >> --include .mozilla/arb/kfgj0v2y.slt/prefs

Re: Trouble with include/exclude patterns

2003-02-05 Thread Wayne Davison
On Thu, Feb 06, 2003 at 01:17:34AM -, Max Bowsher wrote: > --include .mozilla > --include .mozilla/arb/ > --exclude .mozilla/arb/* > --include .mozilla/arb/kfgj0v2y.slt/ > --include .mozilla/arb/kfgj0v2y.slt/bookmarks.html > --include .mozilla/arb/kfgj0v2y.slt/prefs.js > --exclude .mozilla/arb/

Re: Trouble with include/exclude patterns

2003-02-05 Thread Max Bowsher
Anand Buddhdev wrote: > I'm using rsync 2.5.4 on my RedHat 7.3 client laptop and rsync 2.5.5 > on my RedHat 8.0 server. On the client, I have a directory "rpm" with > 5 subdirectories, out of which I only want to copy the one called > SRPMS > across. I also have another directory ".mozilla" out of

Trouble with include/exclude patterns

2003-02-05 Thread Anand Buddhdev
I'm using rsync 2.5.4 on my RedHat 7.3 client laptop and rsync 2.5.5 on my RedHat 8.0 server. On the client, I have a directory "rpm" with 5 subdirectories, out of which I only want to copy the one called SRPMS across. I also have another directory ".mozilla" out of which I want to copy across 2 fi

Re: include-exclude patterns

2002-12-10 Thread Wayne Davison
On Tue, Dec 10, 2002 at 09:18:06AM -0500, marco wrote: > I even tried this but it include the whole /var/ folder ! > I just want /var/lib/zope. The solution is that after you include something that is too general, you need to exclude what you don't want. Like this: /etc /var - /* /var/lib - /va

Re: include-exclude patterns

2002-12-10 Thread Paul Faure
This is why regular expression matching is 1000 times more powerful. I submitted a patch a few months ago. marco ([EMAIL PROTECTED]) wrote: > Le Mon, 9 Dec 2002 21:22:48 -0800 > jw schultz <[EMAIL PROTECTED]> ?crivait : > > I found this on the FAQ-O-Matic from the rsync webite > > http://rsync.s

Re: include-exclude patterns

2002-12-10 Thread marco
Le Mon, 9 Dec 2002 21:22:48 -0800 jw schultz <[EMAIL PROTECTED]> écrivait : I found this on the FAQ-O-Matic from the rsync webite http://rsync.samba.org/fom-serve/cache/164.html I'm so agree... Is it possible to make it true ? thanks -- marco -- Clé PGP publique : https://iftbqp.mine.nu/marc

Re: include-exclude patterns

2002-12-10 Thread marco
Le Mon, 9 Dec 2002 21:22:48 -0800 jw schultz <[EMAIL PROTECTED]> écrivait : > You forgot to include /var/ and /var/lib/ so it never even > sees /var/lib/zope/ I even tried this but it include the whole /var/ folder ! I just want /var/lib/zope. -- marco -- Clé PGP publique : https://iftbqp.mine.

Re: include-exclude patterns

2002-12-09 Thread jw schultz
On Tue, Dec 10, 2002 at 12:08:54AM -0500, marco wrote: > Hi, > I just subscribe to ask you a question about patterns in exclude-include > files. > I just want some folders to be rsynced to a remote machine. > What I tried is : > IncludeFile > - > /etc/ > /var/lib/zope/ > -

include-exclude patterns

2002-12-09 Thread marco
Hi, I just subscribe to ask you a question about patterns in exclude-include files. I just want some folders to be rsynced to a remote machine. What I tried is : IncludeFile - /etc/ /var/lib/zope/ - /* --- result of $$ rsync -avvrn --delete --delete-exc

Re: Include / exclude patterns

2002-11-28 Thread Max Bowsher
Carlos Molina <[EMAIL PROTECTED]> wrote: > Nope, isn't works, because rsync only fetchs /etc directory. > On the output, you could see that /home nad /var is excluded (I > suppose that is excluded by /* pattern) Blah. Your right. This will work: + /etc + /home + /home/cmolina - /home/* + /var +

Re: Include / exclude patterns

2002-11-28 Thread Max Bowsher
Carlos Molina <[EMAIL PROTECTED]> wrote: > + /etc > + /home/cmolina > + /var/log > - - /* Huh? "- -" ? Mistake again? > rsync isn't include directories under /home and /var, because it > exclude recursively on /* Well sure, but it would have included dirs under /home/cmolina and /var/log. The

Include / exclude patterns.

2002-11-28 Thread Carlos Molina
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 |Carlos Molina <[EMAIL PROTECTED]> wrote: | |>-BEGIN PGP SIGNED MESSAGE- |>Hash: SHA1 |> |>Greetings. |> |>I'm trying to make some backups using rsync, but I have some questions |>about it. |> |>First, on the receiving side, i make a test with

Re: Include / exclude patterns

2002-11-28 Thread Max Bowsher
Carlos Molina <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Greetings. > > I'm trying to make some backups using rsync, but I have some questions > about it. > > First, on the receiving side, i make a test with this line. > > rsync -vv -e ssh --recursive --includ

Include / exclude patterns

2002-11-28 Thread Carlos Molina
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetings. I'm trying to make some backups using rsync, but I have some questions about it. First, on the receiving side, i make a test with this line. rsync -vv -e ssh --recursive --include-from=include.txt cmolina@www-01:/ /tmp/cmolina On incl

Re: rsync and exclude patterns

2000-12-05 Thread Bennett Todd
2000-12-05-13:09:45 Dave Dykstra: > You understand correctly, this is a known bug. [...] There's not > an easy solution, however, because the function rsync uses to > do wildcard matches, fnmatch(), cannot completely implement the > semantics as described in the rsync man page. As an alternative

Re: rsync and exclude patterns

2000-12-05 Thread Dave Dykstra
On Mon, Dec 04, 2000 at 03:05:26PM -0800, Mike Spitzer wrote: > > In the exclude pattern section, the rsync man page states: > > if the pattern starts with a / then it is matched > against the start of the filename, otherwise it is > matched against the end of the filename.

rsync and exclude patterns

2000-12-04 Thread Mike Spitzer
In the exclude pattern section, the rsync man page states: if the pattern starts with a / then it is matched against the start of the filename, otherwise it is matched against the end of the filename. Consistent with this, excluding "*.c" excludes .c files anywhere i