similar to: Fixing some exclude/include bugs

Displaying 20 results from an estimated 9000 matches similar to: "Fixing some exclude/include bugs"

2003 Jul 06
3
New wildmatch code in CVS
If you've been watching CVS, you may have noticed that I checked in some new files named wildmatch.c and wildmatch.h. This code implements the shell-style wildcard matching with rsync's extension that "**" matches a "/" but "*" and "?" does not. I have also checked in a new test module which has allowed me to test a few things on all the machines
2004 Feb 25
2
--exclude and --delete
Hi, I am experiencing a problem when using rsync (2.6.0) and I was after some clarification. I wish to sync two directories except for a specified sub-directory that exists in both the sending and receiving directories. So, rsync -av --exclude "/user/profile/" --delete /home/user user@receiver:/home This works as I expect, sender:/home/user/profile/ is not copied, except that
2010 May 21
4
DO NOT REPLY [Bug 7450] New: When a single file is specified, the exclusion of it in the exclude-from file is ignored
https://bugzilla.samba.org/show_bug.cgi?id=7450 Summary: When a single file is specified, the exclusion of it in the exclude-from file is ignored Product: rsync Version: 3.0.7 Platform: x64 OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo:
2010 Sep 30
3
Excluding most and including some problems continue.
Here is my rsync command as it currently stands. /usr/local/bin/rsync -vvv --stats -Pzrtpl --delete --password-file=/export/home/webuser/.appprod --log-file=/export/home/webuser/logs/rsync-log -F /export/home/ webuser at appprod::dprweb_extranet/ > rsync-test Here is the current .rsync-filter file. + das + em + enf + internal + itb + medtox + pml + psb + reg + whs + htdocs + docs - /* -
2017 Mar 03
2
How do you exclude a directory that is a symlink?
Considering you cant INCLUDE a directory that is a symlink... which would be really handy right now for me to resolve a mapping of 103 -> meaningful_name for backups, instead im resorting to temporary bind mounts of 103 onto meaningful_name, and when the bind mount isnt there, the --del is emptying meaningful_name accidentally at times. I think both situations could benefit from a
2003 Nov 11
1
unexpected --exclude pattern behaviours with glob wildcards
Rsync version: rsync-2.5.6-3mdk (Mandrake 9.2) I see from the CVS log that some of the following awkwardness may be fixed (or at least different) in the next public release. I'm looking forward to that. In the interim, here are some problems: --------- Problem 1 - unexpected consequence of replacing / with ** --------- The following exclude works because the explicit slash causes a match
2008 Jan 26
2
--exclude patterns
Hi, I want to rsync a large number of files from A to B, but I need to exclude certain files. Specifically, A has /test/runs/{1,2,3,...,2500}, i.e., about 2500 directories here. However, I only want to transfer the directories that are numbered 2000 or higher, i.e., I want to exclude /test/runs/{1,2,3,...,1999}, so I tried this: rsync --include='/test/runs/***' \
2009 Jan 25
1
Include/Exclude problems
hi, I am trying to rsync a very large filesystem which is about 3TB, but naturally I want to exclude a lot of things. However, I am really struggling with excluding directories. SRC=/dasd/december/2008 #Notice there is no trailing slash TARGET=/backup/december/2008 #Notice there is no trailing slash I want to exclude /dasd/december/2008/Data /dasd/december/2008/Logs
2003 Oct 07
2
How to change permissions on a directory without meaning to... - include/exclude semantics
Hi, Think I've found either a documentation bug, in rsync (or possibly a code bug), with the include/exclude feature. This occurs on (at least) 2.5.5 and 2.5.6 First I created a file list of files that I wanted backed up [root@poppy root]# cat /tmp/sendmail-rpmverify-out /etc/ /etc/aliases /etc/mail/ /etc/mail/helpfile /etc/mail/local-host-names /etc/mail/sendmail.mc
2001 Nov 13
3
rsync exclude/include
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. No files transfered. But I would expect rsync to transfer files:
2003 Jun 04
1
[rfc idle thought] exclude pattern left anchor
A thought has been nagging me for a bit now so i'll run it up the flagpole and see if anyone salutes. There seems to be quite a bit of confusion regarding the use of the leading slash as a top of tree anchor for exclude patterns. The manpage seems clear enough to me but somehow it doesn't seem to get through. What if we allowed a leading circumflex (^) to serve the same function. We
2005 Jun 16
2
Include and Exclude
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" from 3.4 and 4.0, for example:
2009 Aug 20
5
help with regular expressions in R
I'm having trouble achieving the results I want using a regular expression. I want to eliminate all characters that fall within square brackets as well as the brackets themselves, returning an "". I'm not sure if it's R's use of double slash escapes or something else that is tripping me up. If I only use one slash I get 1: '\[' is an unrecognized escape in a
2004 Jan 19
3
Improving name-truncation detection
I've got a patch that changes f_name_to() to return an unsigned int (like snprintf() and strlcpy() do) and adds checking to ensure that we didn't overflow the name before we try to use it: http://www.blorf.net/name-overflow.patch If anyone would care to check out the following patch before I commit it, please do. ..wayne..
2002 Jan 10
2
exclude this file #notes#
What is the necessary syntax to exclude a file named #notes# from an action? I've tried these without success: #* "#*" #notes# "#notes#" \#notes\#
2003 Mar 23
2
Modified --files-from patch
I've been working on an update to my --files-from patch that I think will soon be ready to be committed to CVS. See if you agree. For those that have been following the saga, here's a list of just the changes since the last patch (for those that haven't, see the next section): Changes Since the Last Release: =============================== - The --null option was renamed to
2003 Jan 08
2
Proper --exclude= syntax?
I'm currently syncing the home directories on two boxes with the syntax: dest-host# rsync -av -e "ssh" --delete --progress source-host:/home/ /home/ That's working well. Now I want to exclude /home/httpd/* from the process. (I don't want web changes on one box to affect the other box.) Which of the following is the best/correct one to use? 1) --exclude=/home/httpd/* 2)
2013 May 15
3
exclude a pattern but only in the top level
Consider the following directory structure /foo/aaa/*/* /foo/bbb/*/* /foo/ccc/*/* I want to sync all of /foo, but exclude /foo/aaa but not exclude any other occurances of "aaa" or "foo/aaa" (be they files or dirs) that might occur within the other dirs /foo/bbb/* /foo/ccc/* etc I don't want to exclude /foo/bbb/aaa or /foo/ccc/111/aaa or /foo/ccc/111/foo/aaa etc...
2002 Feb 14
2
Exclude directories
I am trying to exclude a few directories from being copied to a 2nd local hard disk. I have read the doc's, used the --exclude-from= to specify the filename.. but What confuses me is whether a directory listed in this file should have a trailing / on it or is the file completely different fro what I think it is. ie: /usr/src or /usr/src/ Thanks Ian
2001 Nov 13
1
rsync exclude/include [FIDUCIA virengeprüft - ohne Gewähr, daß alle bekannten Viren und deren Varianten erkannt wurden.]
Hi again! Tomasz Ciolek <tmc@goldweb.com.au> on 13.11.2001 01:21:27 An: Thomas Schweikle <tschweikle@fiducia.de> Kopie: Thema: Re: rsync exclude/include [FIDUCIA virengepr?ft - ohne Gew?hr, da? alle bekannten Viren und deren Varianten erkannt wurden.] > Try dumoping the whole file list into a text file, prefix each one with > minus for exclude and a + for