search for: add_exclud

Displaying 20 results from an estimated 21 matches for "add_exclud".

Did you mean: add_exclude
2005 Jan 18
1
Rsync Minimalist: --include only does "add_exclude"
Why does this not include? I have tried many variations including adding an exclude command. Includes.txt: + //aBackup/* + //apic/* - /* rsync --verbose --progress --stats -vv --recursive -e "ssh -p 2423" --include-from=includes.txt rsynchost: add_exclude(+ //aBackup/*.*) add_exclude(+ //apic/*) add_exclude(- /*) user@rsynchost's password: receiving file list ... add_exclude(+ //aBackup/*.*,exclude) add_exclude(+ //apic/*,exclude) add_exclude(/*,exclude) server_sender starting pid=9646 make_file(1,.) expand file_list to 4000 bytes, did move rec...
2002 Nov 11
0
Regular Expression support
...n 1; } @@ -119,11 +200,11 @@ return 1; } } + } return 0; } - static void report_exclude_result(char const *name, struct exclude_struct const *ent, STRUCT_STAT const *st) @@ -179,7 +260,7 @@ } -void add_exclude_list(const char *pattern, struct exclude_struct ***list, int include) +void add_exclude_list(const char *pattern, struct exclude_struct ***list, int include, int regexp) { int len=0; if (list && *list) @@ -198,7 +279,7 @@ *list = (struct exclude_struct **)Realloc(*list,sizeof(stru...
2002 May 08
1
rsyncd.conf;
...uid = root include = lib/smb.conf private/username.map private/smbpasswd exclude = * hosts allow = 192.252.27.0/24 hosts deny = * My problem is that I don't get the files. If I enable verbose logging on the server I see: May 8 10:57:51 anaca2 rsyncd[374683]: add_exclude(lib/smb.conf,include) May 8 10:57:51 anaca2 rsyncd[374683]: add_exclude(private/username.map,include) May 8 10:57:51 anaca2 rsyncd[374683]: add_exclude(private/smbpasswd,include) May 8 10:57:51 anaca2 rsyncd[374683]: add_exclude(*,exclude) May 8 10:57:51 anaca2 rsyncd[374683]: rsync on smb/ fr...
2004 Jan 27
1
Differentiating debug messages from both sides
...s %s because of pattern %s%s\n", + *who_am_i, ent->include ? "including" : "excluding", name_is_dir ? "directory" : "file", name, ent->pattern, ent->directory ? "/" : ""); + } } @@ -250,7 +253,8 @@ void add_exclude(struct exclude_struct * out_of_memory("add_exclude"); if (verbose > 2) { - rprintf(FINFO,"add_exclude(%s,%s)\n",pattern, + rprintf(FINFO, "[%c] add_exclude(%s,%s)\n", + *who_am_i, pattern, include ? "include" : "exclude"); } -...
2001 Sep 12
0
Using RSync with NT/98
...Sync: /bin/rsync.exe --verbose --stats --archive --one-file-system --rsync-path ='/bin/rsync.exe' --include='sitever.ini' --include='hclSetup.log' --include='Update.zip' --exclude='*' onanmtso935::Test /cygdrive/c/Test RSync produces the following output: add_exclude(sitever.ini) add_exclude(hclSetup.log) add_exclude(Update.zip) add_exclude(*) local_version=24 remote_version=24 receiving file list ... recv_file_name(.) recv_file_name(hclSetup.log) recv_file_name(sitever.ini) recv_file_name(Update.zip) received 4 names [104631079] i=0 <NULL> . mode=040755...
2003 Dec 02
1
include directory, exclude contents
...r no directory or (directory + contents), but not (directory - contents). I have looked back from current till Oct. 02 but can not find an example of anyone wanting to do this. Debug didn't make much sense as the exclude scan seems not to recognize an include (unless this is just syntax): add_exclude(/.ccache/,exclude) add_exclude(+ .ccache/**,exclude) Thanks, Tim.
2004 Mar 24
1
incorrect exclude list with -C
I just received this bug report on Debian's rsync package. I've verified it. The entry from the manpage: -C [...] Finally, any file is ignored if it is in the same directory as a .cvsignore file and matches one of the patterns listed therein. Here the patterns of a .cvsignore file is apparently used to exclude file outside the directory where the .cvsignore file is found. Any
2002 Nov 10
0
bug with symlinks
...ed-upda[18:46 root@geze:/mnt/mirror]tes/ Links stable is to potato, but should be to woody. Why does not rsync relink the link? I am including the log. Thanks and regards Hans Ginzel -- http://www.matfyz.cz/hans/Unix/Debian/mirror_debian.pl -------------- next part -------------- add_exclude(Packages,exclude) add_exclude(/dists/,include) add_exclude(/dists/*,include) add_exclude(*,exclude) opening tcp connection to ftp.linux.cz port 873 receiving file list ... recv_file_name(.) recv_file_name(dists) recv_file_name(dists/Debian2.2r7) recv_file_name(dists/potato) recv_file_name(dists/p...
2002 May 22
1
rsyncd listing of directories
...argstr[x++] = 'r'; in exclude.c: /* This is a complete hack - blame Rusty. * * FIXME: This pattern shows up in the output of * report_exclude_result(), which is not ideal. */ if (list_only && !recurse) { add_exclude("/*/*", 0); } So I'm going to bite and blame Rusty at this point and ask the question: why was this implemented this way? I can't think of a good reason why. I'm happy to try and work on a patch if there is a consensus that this is desireable. -- Alberto **...
2004 Feb 08
2
strange behaviour with -C
Hi! This problem gave me quite a headache tonight... I more or less have this source directory: hop@krautesel:/var/tmp$ ls -laR from/ from/: total 12 drwxrwxr-x 3 hop hop 4096 Feb 8 03:34 . drwxrwxrwt 6 root root 4096 Feb 8 03:34 .. drwxrwxr-x 2 hop hop 4096 Feb 8 03:18 CVS -rw-rw-r-- 1 hop hop 0 Feb 8
2003 Jan 09
1
--exclude and --delete-exclude problem
...e that the problem appears when I have a file on the target. Here a verbose output (-vvvvv) cmolina:/home/cmolina/projects/pdbs# /usr/bin/rsync -lptgoD --delete --rsh=/usr/bin/ssh -R --delete-excluded -vvvvv --exclude=/usr/local/src/README root@127.0.0.1:/usr/local/src/* /tmp/localhost/daily.0 add_exclude(/usr/local/src/README,exclude) cmd=/usr/bin/ssh machine=127.0.0.1 user=root path=/usr/local/src/* cmd=/usr/bin/ssh -l root 127.0.0.1 rsync --server --sender -vvvvvlogDtpR --delete-excluded . /usr/local/src/* opening connection using /usr/bin/ssh -l root 127.0.0.1 rsync --server --sender -vvvvvlo...
2001 Sep 30
0
Exclude sets generated with -C
...in + local_exclude_list. */ + if (cvs_exclude) { + for (n=0; global_cvs_exclude_list[n]; n++) + if (check_one_exclude(name, + global_cvs_exclude_list[n],st)) + return !global_cvs_exclude_list[n]->include; + } + return 0; } @@ -319,16 +336,21 @@ return(t); } - -void add_exclude_line(char *p) +static void add_exclude_line_to_list(char *p, + struct exclude_struct ***list) { char *tok; if (!p || !*p) return; p = strdup(p); if (!p) out_of_memory("add_exclude_line"); for (tok=get_exclude_tok(p); tok; tok=get_exclude_tok(NULL)) - add_exclude(tok,...
2003 Mar 22
5
CYGWIN Rsync exclude/include problem
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 want to rsync 5 of them (the ones marked with an *) and in those 4 I want to exclude certain
2001 Aug 31
0
Weird file permission behavior
...n/ssh -vvv --delete \ eftp.redback.com:/home/ftp/customers /service/eftp/ And here is the output (I have pared it down a bit, the full output is available if someone is masochistic enough to look at it): local_version=24 remote_version=24 local_version=24 remote_version=24 receiving file list ... add_exclude(.snapshot) [This all goes fine . . . ] recv_file_list done get_local_name count=5 /service/eftp/ [Lots of excludes get added] make_file(-1,customers) make_file(-1,customers/andan) make_file(-1,customers/rbak) make_file(-1,customers/rbak/OID308.netapp7) send_file_list done deleting in customers gen...
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
...;, 0, POPT_ARG_STRING, 0, OPT_EXCLUDE, 0, 0 }, @@ -498,6 +502,11 @@ int parse_arguments(int *argc, const cha delete_mode = 1; break; + case OPT_DELETE_SENT_FILES: + delete_sent_files = 1; + need_messages_from_generator = 1; + break; + case OPT_EXCLUDE: add_exclude(&exclude_list, poptGetOptArg(pc), ADD_EXCLUDE); @@ -902,6 +911,9 @@ void server_options(char **args,int *arg args[ac++] = "--from0"; } } + + if (delete_sent_files) + args[ac++] = "--delete-sent-files"; *argc = ac; } Index: proto.h --- proto.h 15 Jan...
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
...de_list = copy_exclude_list(recur_local_exclude_list); if (cvs_exclude) { if (strlcpy(p, ".cvsignore", MAXPATHLEN - offset) @@ -976,6 +1016,18 @@ } } + if (rsync_exclude) { + if (strlen(fname) + strlen(rsync_exclude) <= MAXPATHLEN - 1) { + strcpy(p, rsync_exclude); + add_exclude_file(&recur_local_exclude_list,fname,MISSING_OK,ADD_EXCLUDE); + } else { + io_error = 1; + rprintf(FINFO, + "cannot rsync-exclude in long-named directory %s\n", + fname); + } + } + for (errno = 0, di = readdir(d); di; errno = 0, di = readdir(d)) { char *dname = d_nam...
2013 Jun 06
1
[supermin PATCH] RFC: Add a --names-only flag.
...let outputdir = ref "." let packages = ref [] let save_temps = ref false let use_installed = ref false let verbose = ref false @@ -50,12 +55,14 @@ let set_packager_config filename = packager_config := Some filename let argspec = Arg.align [ "--exclude", Arg.String add_exclude, "regexp Exclude packages matching regexp"; - "--names", Arg.Set names_mode, + "--names", Arg.Unit (fun () -> mode := PkgNames), " Specify set of root package names on command line"; + "--names-only", Arg.Unit (fun () -> mode :=...
2003 Feb 16
1
rsync-exclude.patch.
...error = 1; + rprintf(FINFO, + "cannot cvs-exclude in long-named directory %s\n", + fname); + } + } + for (di = readdir(d); di; di = readdir(d)) { char *dname = d_name(di); if (strcmp(dname, ".") == 0 || strcmp(dname, "..") == 0) @@ -866,6 +911,10 @@ add_exclude_list("!", &local_exclude_list, 0); } + if (recur_local_exclude_list) { + add_exclude_list("!", &recur_local_exclude_list, 0); + } + closedir(d); } @@ -887,6 +936,8 @@ if (show_filelist_p() && f != -1) start_filelist_progress("building file li...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
This is a patch to add an --rsync-exclude option to rsync-2.5.6cvs. File names in .rsync- (or .rsync+) are excluded (or included) from the file lists associated with the current directory and all of its subdirectories. This has advantages over --cvs-exclude for backing up large file systems since the .cvsignore files only apply to the current directory: unless the .cvsignore restrictions apply
2003 Oct 03
2
Cygwin/rsync Hang Problem Testing Results
People of cygwin & rsync, I recently attempted to get cygwin and rsync working to solve a backup/mirroring need in my computer life. Well, as you might guess, I ran into a little but of trouble. Strangely enough, rsync seemed to be regularly hanging when I attempted to do a "get" (sycronize a remote to a local dir). Well, considering I want to automate this, that was not going