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
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
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
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
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
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/
>
>
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 --
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
*' \
> --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
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
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
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
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
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
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'
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
> >> -
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
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
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/
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
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
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
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
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
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.
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/
> -
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
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
+
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
-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
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
-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
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
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.
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
35 matches
Mail list logo