Patch to clearify the usage of shell patterns and rsync exclude/include patterns

2014-06-10 Thread Karl-Philipp Richter
Hi together, I'd like to propose the attached patch for the man page clarifying the difference between shell patterns and rsync patterns as it is not clear in at least of the examples (the user might think that `rsync remote.host:*.c /local/target/` is possible. A HACKING file has been added to pro

DO NOT REPLY [Bug 7523] rsync exclude file ignores spaces

2010-06-18 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7523 way...@samba.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 7523] New: rsync exclude file ignores spaces

2010-06-18 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7523 Summary: rsync exclude file ignores spaces Product: rsync Version: 2.6.8 Platform: x86 OS/Version: Linux Status: NEW Severity: major Priority: P3 Component

Re: rsync --exclude-from-file not working

2010-03-29 Thread Johan
On 03/28/2010 07:35 PM, Benjamin R. Haskell wrote: > On Sun, 28 Mar 2010, Johan wrote: > >> Good day, >> >> rsync does load and read the file but does not act on it. >> >> If I change the filename rsync complains. >> I must be doing something wrong. > > The paths for 'exclude-from' should be rela

Re: rsync --exclude-from-file not working

2010-03-28 Thread Benjamin R. Haskell
On Sun, 28 Mar 2010, Johan wrote: > Good day, > > rsync does load and read the file but does not act on it. > > If I change the filename rsync complains. > I must be doing something wrong. The paths for 'exclude-from' should be relative to the root directory of your source. (So, omit the '/be

rsync --exclude-from-file not working

2010-03-28 Thread Johan
Good day, rsync does load and read the file but does not act on it. If I change the filename rsync complains. I must be doing something wrong. I use a laptop. Opensuse 11.2, rsync > version 3.0.6 protocol version 30. I created the following to test.. In .. /home/johan/ a dir rysnc-tst. In th

Any good rsync --exclude tutorials?

2010-02-23 Thread Wolfram Volpi
Please recommend a rsync --exclude tutorial. I read the manual http://linux.die.net/man/1/rsync > ¾ down page, Filter Rules, Include-Exclude Pattern Rules, but its hard to figure it out. Thank you, Wolfram Volpi -- Please use reply-all for most replies to avoid omitting the mail

Re: rsync exclude

2009-12-16 Thread Gary Montalbine
That worked. Thank you Tony. Gary Tony wrote: try: --exclude=.thumbnails/*** --exclude=tmp/*** On Dec 16, 2009, at 1:40 PM, Gary Montalbine wrote: Tony Abernethy wrote: Gary Montalbine wrote: I am trying to backup my /home directory. A friend helped me with this script: #!/bin/sh #backup

Re: rsync exclude

2009-12-16 Thread Tony
try: --exclude=.thumbnails/*** --exclude=tmp/*** On Dec 16, 2009, at 1:40 PM, Gary Montalbine wrote: > > > Tony Abernethy wrote: >> Gary Montalbine wrote: >>> I am trying to backup my /home directory. A friend helped me with this >>> script: >>> >>> #!/bin/sh >>> #backup friday >>> #"Spinning

Re: rsync exclude

2009-12-16 Thread Gary Montalbine
Tony Abernethy wrote: Gary Montalbine wrote: I am trying to backup my /home directory. A friend helped me with this script: #!/bin/sh #backup friday #"Spinning up backup drive and mounting it .." cd / mount /mnt/hd2 #"Starting backup procedures" rsync -avx --exclude="/home/gary/.thumbnails/"

RE: rsync exclude

2009-12-16 Thread Tony Abernethy
Gary Montalbine wrote: > I am trying to backup my /home directory. A friend helped me with this > script: > > #!/bin/sh > #backup friday > #"Spinning up backup drive and mounting it .." > cd / > mount /mnt/hd2 > #"Starting backup procedures" > rsync -avx --exclude="/home/gary/.thumbnails/" > --exc

rsync exclude

2009-12-16 Thread Gary Montalbine
I am trying to backup my /home directory. A friend helped me with this script: #!/bin/sh #backup friday #"Spinning up backup drive and mounting it .." cd / mount /mnt/hd2 #"Starting backup procedures" rsync -avx --exclude="/home/gary/.thumbnails/" --exclude="/home/gary/tmp/" --delete --ignore-e

Re: rsync exclude files based on filesize

2009-09-30 Thread Matthias Schniedermeyer
On 30.09.2009 08:00, Rahul Nabar wrote: > On Wed, Sep 30, 2009 at 4:41 AM, Paul Slootman wrote: > > On Tue 29 Sep 2009, Rahul Nabar wrote: > > > >> Is there a way to set rsync excludes by filesize? I already do > > > > Did you look in the manpage? > > > > "man rsync", search for "size" and the 5th

Re: rsync exclude files based on filesize

2009-09-30 Thread Rahul Nabar
On Wed, Sep 30, 2009 at 4:41 AM, Paul Slootman wrote: > On Tue 29 Sep 2009, Rahul Nabar wrote: > >> Is there a way to set rsync excludes by filesize? I already do > > Did you look in the manpage? > > "man rsync", search for "size" and the 5th hit describes it. Thanks Paul! I deserve a RTFM. Had d

Re: rsync exclude files based on filesize

2009-09-30 Thread Paul Slootman
On Tue 29 Sep 2009, Rahul Nabar wrote: > Is there a way to set rsync excludes by filesize? I already do Did you look in the manpage? "man rsync", search for "size" and the 5th hit describes it. Paul -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or

rsync exclude files based on filesize

2009-09-29 Thread Rahul Nabar
Is there a way to set rsync excludes by filesize? I already do excludes by a wild card on the name but I needed something a bit more sophisticated this time around. I have files with the extension .nc (netcdf files) which tend to be huge before the users post-process them. I want all files with a

Re: rsync --exclude-from fileesclusi.txt

2006-05-18 Thread Paul Slootman
On Thu 18 May 2006, [EMAIL PROTECTED] wrote: > Hi!I want to exclude some files to transfer from my local to the remotehost, > so I created a file called fileesclusi.txt,with this lines: > > /etc/fstab > /etc/ntp.conf.predhclient > /etc/udev > /etc/openldap > /etc/gpm-root.conf > /home/copia/x.tx

rsync --exclude-from fileesclusi.txt

2006-05-18 Thread [EMAIL PROTECTED]
Hi!I want to exclude some files to transfer from my local to the remotehost, so I created a file called fileesclusi.txt,with this lines: /etc/fstab /etc/ntp.conf.predhclient /etc/udev /etc/openldap /etc/gpm-root.conf /home/copia/x.txt This is the command that I use,I've not errors, but the other

Re: Make rsync exclude subversion working directories

2006-04-02 Thread Matt McCutchen
On Sun, 2006-04-02 at 17:04 +0100, Martin Scharrer wrote: > I naive try with a filter rule like "- .svn/../", which should exclude all > parent dirs of the '.svn' dirs, doesn't work. Ok, this does not suprise me. Right, because rsync matches the pattern against the canonical path to each file it

Make rsync exclude subversion working directories

2006-04-02 Thread Martin Scharrer
Hi Guys, I'm backuping my home dir with rsync since 1 1/2 years, which is quite nice (I'm using the link-dir option). Now I started to use subversion and don't like that rsync is making backups of the checked-out working dirs. First I put all wd's in one folder (~/tmp) and put this on an exclud

Re: subdir-exclude patch now in patches dir (was rsync-exclude)

2004-04-17 Thread Wayne Davison
On Sat, Apr 17, 2004 at 08:45:15PM +0200, John Bowman wrote: > I tried out the subdir-exclude patch and it works well for me. The > next release of rlbackup (coming in a few days) will use this version. Note that I renamed the option in the patch that comes along with the 2.6.1pre-2 release; it i

rsync exclude file template - directory name without directory contents

2003-12-03 Thread tim
FYI Original Message Subject: rsync exclude file - directory name without directory contents Date: Wed, 03 Dec 2003 22:28:37 GMT Newsgroups: alt.os.linux,comp.os.linux.misc,comp.unix.admin When using rsync to maintain incremental backups significant space can be saved on the

RE: CYGWIN Rsync exclude/include problem

2003-03-21 Thread Mike Lavender
ollowing question. What is the actual WINDOWS character code for a *nix line feed. eg. chr(13)???. Thanks again. Mike Lavender -Original Message- From: Mike Lavender Sent: March 21, 2003 12:22 PM To: [EMAIL PROTECTED] Subject: CYGWIN Rsync exclude/include problem I'm having troubles

Re: CYGWIN Rsync exclude/include problem

2003-03-21 Thread jw schultz
On Fri, Mar 21, 2003 at 12:22:15PM -0500, Mike Lavender wrote: > > Command Line: > rsync -avvvzl --stats --delete --delete-excluded > --exclude-from=c:\rsync\includes.txt /cygdrive/c/ [EMAIL PROTECTED]::LaptopBackup First, get rid of the backslashes. Second, drop verbosity to just -vv (not -vvv)

Re: CYGWIN Rsync exclude/include problem

2003-03-21 Thread Wayne Davison
On Fri, Mar 21, 2003 at 12:22:15PM -0500, Mike Lavender wrote: > + /Databases/#Include /Databases & subfolders Do you realize that this is specifying a file whose name starts with 4 spaces and contains a '#' character in it? If you want to put comments into your include/exclude file, they mus

Re: CYGWIN Rsync exclude/include problem

2003-03-21 Thread Max Bowsher
Dalton Harvie wrote: > Newbie response: > > How about: > > rsync -avvvzl --stats --delete --delete-excluded > --exclude-from=c:\rsync\includes.txt /cygdrive/c/* [EMAIL PROTECTED]::LaptopBackup > > as I've had problems with the --delete flag without using the * before NOT advisable. Adding * is unn

Re: CYGWIN Rsync exclude/include problem

2003-03-21 Thread Max Bowsher
Mike Lavender wrote: > I'm having troubles with getting rsync 2.5.5 (CYGWIN version) to > include/exclude files they way I expect it to. I have mulled over the > list postings and man pages regarding this and I am either missing > something or ... well I don' know. > > I have a drive with 12 folder

Re: CYGWIN Rsync exclude/include problem

2003-03-21 Thread Dalton Harvie
Newbie response: How about: rsync -avvvzl --stats --delete --delete-excluded --exclude-from=c:\rsync\includes.txt /cygdrive/c/* [EMAIL PROTECTED]::LaptopBackup as I've had problems with the --delete flag without using the * before (see down the list a bit, "can't delete older file/directory li

CYGWIN Rsync exclude/include problem

2003-03-21 Thread Mike Lavender
I'm having troubles with getting rsync 2.5.5 (CYGWIN version) to include/exclude files they way I expect it to. I have mulled over the list postings and man pages regarding this and I am either missing something or ... well I don' know. I have a drive with 12 folders in the root however, I only

Re: rsync "exclude-from"

2002-05-09 Thread Dave Dykstra
Because your source is "mail/", you need to remove the mail/ from your exclude patterns. If you used "mail" without the trailing slash then you'd need it. rsync -vv should help you debug exclude patterns. - Dave Dykstra On Sat, Apr 20, 2002 at 11:18:18AM -0400, Nikolaus Hiebaum wrote: > Hi - >

rsync "exclude-from"

2002-04-20 Thread Nikolaus Hiebaum
Hi - I want to use rsync in combination with a list of files it should exclude, but somewhere I seem to have a problem. The problem is that the files and directories I list in the file to be excluded are in fact synchronized on the remote server. I should add that they are not present on the rem

Re: rsync exclude/include

2001-11-15 Thread Thomas Schweikle
Dave Dykstra <[EMAIL PROTECTED]> on 15.11.2001 17:57:08 An: Thomas Schweikle <[EMAIL PROTECTED]> Kopie:[EMAIL PROTECTED] Thema: Re: rsync exclude/include On Thu, Nov 15, 2001 at 05:17:32PM +0100, Thomas Schweikle wrote: [...] > + /1.5.* > + /1.5.*/i386**

Re: rsync exclude/include

2001-11-15 Thread Dave Dykstra
On Thu, Nov 15, 2001 at 05:17:32PM +0100, Thomas Schweikle wrote: ... > > Wait, if i386* matches directories and not just files you'll need > > > >+ /iso > >+ /iso/1.5.* > >+ /iso/1.5.*/i386** > >- * > > > > so that it will include all files below the i386* directories. > > Any dou

Re: rsync exclude/include

2001-11-15 Thread Thomas Schweikle
Dave Dykstra <[EMAIL PROTECTED]> on 13.11.2001 17:41:22 An: Thomas Schweikle <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Kopie: Thema: Re: rsync exclude/include > On Tue, Nov 13, 2001 at 10:00:59AM -0600, Dave Dykstra wrote: > ... >> A simplification i

Re: rsync exclude/include

2001-11-13 Thread Wayne Davison
On Tue, 13 Nov 2001, Thomas Schweikle wrote: > I am calling rsync using > > rsync -avz --include-from="include" --exclude-from="exclude" > ftp3.sourceforge.net::/netbsd/iso iso/ Looks like you didn't copy that command exactly, because rsync would fail with a syntax error due to the '/' before th

Re: rsync exclude/include

2001-11-13 Thread Dave Dykstra
On Tue, Nov 13, 2001 at 10:00:59AM -0600, Dave Dykstra wrote: ... > A simplification is this: > > + /iso > + /iso/1.5.* > + /iso/1.5.*/i386* > - * > > because if you don't have the slash preceding the exclude "*" it applies at > all levels. Wait, if i386* matches directories and

Re: rsync exclude/include [FIDUCIA virengeprüft - ohne Gewähr, daß alle bekannten Viren und deren Varianten erkannt wurden.]

2001-11-13 Thread Dave Dykstra
On Tue, Nov 13, 2001 at 01:44:45AM +0100, Thomas Schweikle wrote: > > Hi again! > > > > > > Tomasz Ciolek <[EMAIL PROTECTED]> on 13.11.2001 01:21:27 > > An: Thomas Schweikle <[EMAIL PROTECTED]> > Kopie: > Thema:Re: rsync exc

Re: rsync exclude/include [FIDUCIA virengepr?ft - ohne Gew?hr, da? allebekannten Viren und deren Varianten erkannt wurden.]

2001-11-13 Thread Thomas Schweikle
Tomasz Ciolek <[EMAIL PROTECTED]> on 13.11.2001 06:29:35 An: Thomas Schweikle <[EMAIL PROTECTED]> Kopie: Thema: Re: rsync exclude/include [FIDUCIA virengepr?ft - ohne Gew?hr, da? alle bekannten Viren und deren Varianten erkannt wurden.] > so perhaps dropping th

Re: rsync exclude/include [FIDUCIA virengepr?ft - ohne Gew?hr, da? allebekannten Viren und deren Varianten erkannt wurden.]

2001-11-12 Thread Thomas Schweikle
Tomasz Ciolek <[EMAIL PROTECTED]> on 13.11.2001 01:51:25 An: Thomas Schweikle <[EMAIL PROTECTED]> Kopie:"Tomasz Ciolek Umm loose the spaces between the - and the pattern?? removing spaces changes matching to not match anything at all --- transferring all files! Really something wro

Re: rsync exclude/include [FIDUCIAvirengeprüft - ohne Gewähr, daß alle bekanntenViren und deren Varianten erkannt wurden.]

2001-11-12 Thread Thomas Schweikle
Hi again! Tomasz Ciolek <[EMAIL PROTECTED]> on 13.11.2001 01:21:27 An: Thomas Schweikle <[EMAIL PROTECTED]> Kopie: Thema: Re: rsync exclude/include [FIDUCIA virengeprüft - ohne Gewähr, daß alle bekannten Viren und deren Varianten erkannt wurden.] > Try dumoping

rsync exclude/include

2001-11-12 Thread Thomas Schweikle
I want to rsync only a small part of a directory tree. I've set up an exclude and an include file: exclude holds: /* include holds: /iso/1.5.*/i386 I am calling rsync using rsync -avz --include-from="include" --exclude-from="exclude" ftp3.sourceforge.net::/netbsd/iso iso/ but nothing happens.