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 can't figure 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