Displaying 20 results from an estimated 33 matches for "compare_dest".
2004 Apr 15
0
Multiple compare-dest args
...tor.c rsync-2.6.1pre-1-vidar/generator.c
--- rsync-2.6.1pre-1/generator.c 2004-03-07 21:29:59.000000000 +0100
+++ rsync-2.6.1pre-1-vidar/generator.c 2004-04-15 11:23:17.000000000 +0200
@@ -41,7 +41,7 @@
extern int io_timeout;
extern int protocol_version;
extern int always_checksum;
-extern char *compare_dest;
+extern char *compare_dest[];
extern int link_dest;
@@ -69,13 +69,13 @@
if (always_checksum && S_ISREG(st->st_mode)) {
char sum[MD4_SUM_LENGTH];
char fnamecmpdest[MAXPATHLEN];
+ int i = 0;
- if (compare_dest != NULL) {
- if (access(fname, 0) != 0) {
- pathjoin(fnam...
2003 Apr 25
1
suggest warning for nonexistant compare_dest
Hello rsync developers,
The string compare_dest (in options.c) is set whenever the --compare-dest
or --link-dest options is called. However, if the directory specified by
compare_dest does not exist, then the target files (which should have been
in compare_dest) are not found, and every transfer is a full transfer.
I can't imagine that...
2003 Oct 18
0
Added functionality --compare-file and --compare-auto
...rg>
+ Copyright (C) 2003, Andy Henson, Zexia Access Ltd
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -41,6 +42,8 @@
extern int always_checksum;
extern int modify_window;
extern char *compare_dest;
+extern char *compare_file;
+extern int compare_auto;
extern int link_dest;
@@ -357,29 +360,36 @@
fnamecmp = fname;
- if ((statret == -1) && (compare_dest != NULL)) {
- /* try the file at compare_dest instead */
+ if ((statret == -1) && compare_auto) {
+ compare_file =...
2005 Jan 05
1
rsync filename heuristics
....o
> diff -urN rsync-2.5.4/alternate.c rsync-2.5.4-fuzzy/alternate.c
> --- rsync-2.5.4/alternate.c 1970-01-01 10:00:00.000000000 +1000
> +++ rsync-2.5.4-fuzzy/alternate.c 2002-04-03 17:04:15.000000000 +1000
> @@ -0,0 +1,117 @@
> +#include "rsync.h"
> +
> +extern char *compare_dest;
> +extern int verbose;
> +
> +/* Alternate methods for opening files, if local doesn't exist */
> +/* Sanity check that we are about to open regular file */
> +int do_open_regular(char *fname)
> +{
> + STRUCT_STAT st;
> +
> + if (do_stat(fname, &st) == 0 &&am...
2002 Aug 02
1
[patch] --link-dest
...==============================
RCS file: /cvsroot/rsync/generator.c,v
retrieving revision 1.44
diff -u -r1.44 generator.c
--- generator.c 31 Jul 2002 21:20:07 -0000 1.44
+++ generator.c 3 Aug 2002 00:08:47 -0000
@@ -41,6 +41,7 @@
extern int always_checksum;
extern int modify_window;
extern char *compare_dest;
+extern int link_dest;
/* choose whether to skip a particular file */
@@ -50,6 +51,15 @@
if (st->st_size != file->length) {
return 0;
}
+ if (link_dest) {
+ if((st->st_mode & ~_S_IFMT) != (file->mode & ~_S_IFMT)) {
+ return 0;
+ }
+ if (st->st_uid != file-&...
2002 Mar 08
1
[PATCH][RFC] space saving incrementals
...d compare-perms option
This creates a new inode for a file even if only
the perms have changed. This way if a file
outside of destdir is hardlinked to a dentry
inside destdir the permissions (uid, gid,
mode) will be untouched preserving history
etc.
o link-dest option
After setting compare_dest this causes
unchanged files in destdir to be hardlinked
to link-dest.
o modified make_exclude_list to support stdin
if --exclude-from has argument of "-"
stdin will be read.
This lets us pipe a include/exclude list
into rsync so that we can generate it on the
fly.
The ups...
2002 Mar 22
1
[PATCH] --link-dest option
...=============================
RCS file: /cvsroot/rsync/generator.c,v
retrieving revision 1.37
diff -u -r1.37 generator.c
--- generator.c 19 Mar 2002 20:16:42 -0000 1.37
+++ generator.c 21 Mar 2002 23:31:26 -0000
@@ -41,6 +41,7 @@
extern int always_checksum;
extern int modify_window;
extern char *compare_dest;
+extern int link_dest;
/* choose whether to skip a particular file */
@@ -50,6 +51,15 @@
if (st->st_size != file->length) {
return 0;
}
+ if (link_dest) {
+ if((st->st_mode & ~_S_IFMT) != (file->mode & ~_S_IFMT)) {
+ return 0;
+ }
+ if (st->st_uid != file-&...
2004 Apr 27
2
rsync 2.6.1 released (including security note)
Hopefully the email to the announce list will show up soon. Until then,
you can get a jump on the rest by checking out the rsync home page to
read the announcement:
http://rsync.samba.org/
It includes a security note about a fix that affects read/write daemons
that are not using chroot. If that includes you, you should look into
upgrading (or maybe enabling chroot on an older rsync).
2002 May 04
1
A simpler move-files patch
...E, &move_files, 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 , 0, 0 },
@@ -813,6 +816,9 @@
args[ac++] = "--compare-dest";
args[ac++] = compare_dest;
}
+
+ if (move_files)
+ args[ac++] = "--move-files";
*argc = ac;
}
Index: rsync.h
--- rsync.h 2002/04/11 02:18:51 1.131
+++ rsync.h 2002/05/04 19:20:29
@@ -47,6 +47,7 @@
#define SAME_NAME SAME_DIR
#define LONG_NAME (1<<6)
#define SAME_TIME (1<<7)
+#define FLAG_NO_D...
2003 Sep 05
1
new option suggestion '--backup-only'
...ckup_only)
+ do_unlink(fname);
kept = 1;
}
#endif
diff -ur rsync/generator.c rsync-backuponly/generator.c
--- rsync/generator.c 2003-08-22 14:42:13.000000000 +0900
+++ rsync-backuponly/generator.c 2003-09-02 15:44:26.000000000 +0900
@@ -41,6 +41,7 @@
extern int modify_window;
extern char *compare_dest;
extern int link_dest;
+extern int backup_only;
/* choose whether to skip a particular file */
@@ -295,6 +296,9 @@
return;
}
+ if (backup_only && statret == -1 && errno == ENOENT)
+ return;
+
if (statret == 0 &&
!preserve_perms &&
(S_ISDIR...
2001 Dec 08
0
Should --write-batch always sync the target tree?
...and -f options so we can use these short
options for something used more often - I expect not too many people to use
the rsync+ features (but I could be wrong, of course).
--- receiver.c 7 May 2001 06:59:37 -0000 1.33
+++ receiver.c 7 Dec 2001 02:16:04 -0000
@@ -36,6 +36,7 @@
extern char *compare_dest;
extern int make_backups;
extern char *backup_suffix;
+extern int write_batch;
static struct delete_list {
dev_t dev;
@@ -357,6 +358,12 @@
if (!am_server) {
log_transfer(file, fname);
}
+...
2003 Nov 05
1
--link-dest
...ons allowing mortal users to use
--link-dest for back ups. (I think... I didn't look at the large
picture.)
Joe
*** generator.c Thu Aug 29 09:44:55 2002
--- ../generator.c Tue Nov 4 09:12:59 2003
***************
*** 42,47 ****
--- 42,50 ----
extern int modify_window;
extern char *compare_dest;
extern int link_dest;
+ extern int preserve_perms;
+ extern int preserve_uid;
+ extern int preserve_gid;
/* choose whether to skip a particular file */
***************
*** 51,63 ****
if (st->st_size != file->length) {
return 0;
}
! if (link_d...
2008 Feb 19
1
two errors with 3.0.0pre9
...nfo(): Unknown error: 0 (0)
Documents/arte/materiale/swisseduc.ch/www.swisseduc.ch/glaciers/alps/gornergletscher/
Documents/temp/
rsync: set_acl: sys_acl_set_file(Documents/temp/foo,
SMB_ACL_TYPE_ACCESS): Operation not supported (45)
the source volume was set to support ACLs, the target (and
compare_dest obviously) volume was not... I could not find any acl
entry in the source near where the error happened, but with
incremental transfers I am not sure where it did happen.
I have another volume still not set for ACLs, so I could do another
test, but it cannot be exactly the same. I will kee...
2004 Mar 17
1
setgid on directories
...#39;t get passed to a remote
call. If there's any interest in
adding this to rsync, I can try to figure out how to pass the option.
--- generator.c Tue Dec 23 20:14:16 2003
+++ ../rsync-2.6.0.gsa/generator.c Thu Feb 12 12:16:11 2004
@@ -41,6 +41,7 @@
extern int modify_window;
extern char *compare_dest;
extern int link_dest;
+extern int setgid_dirs;
/* choose whether to skip a particular file */
@@ -557,6 +558,11 @@
them. This is then fixed after the files are transferred */
if (!am_root && S_ISDIR(file->mode)) {
file->mode |= S_IWUSR...
2002 Mar 15
2
rsync: transmitting always whole files
...as -1 instead of zero on its whole_file variable. To
fix the problem I applied the following patch that forwards --no-whole-file
to the remote side if whole_file has a value of zero:
--- options.c.O Fri Mar 15 10:25:42 2002
+++ options.c Fri Mar 15 10:27:24 2002
@@ -758,6 +758,8 @@
args[ac++] = compare_dest;
}
+ if (!whole_file)
+ args[ac++] = "--no-whole-file";
*argc = ac;
}
Best regards,
Frank Schulz
-------------- next part --------------
HTML attachment scrubbed and removed
2001 Nov 13
2
direct write patch
...(iotime,sizeof(iotime),"--timeout=%d",io_timeout);
diff -ru rsync-2.4.6/receiver.c rsync-2.4.6-direct-write/receiver.c
--- rsync-2.4.6/receiver.c Thu Mar 30 06:23:03 2000
+++ rsync-2.4.6-direct-write/receiver.c Sun Nov 11 11:14:43 2001
@@ -34,6 +34,7 @@
extern char *tmpdir;
extern char *compare_dest;
extern int make_backups;
+extern int direct_write;
extern char *backup_suffix;
static struct delete_list {
@@ -302,7 +303,8 @@
int fd1,fd2;
STRUCT_STAT st;
char *fname;
- char fnametmp[MAXPATHLEN];
+ char *fnametmp;
+ char fnametmpbuf[MAXPATHLEN];
char *fnamecmp;
char fnamecmpbuf[MA...
2005 Mar 31
2
Some files not logged when using --compare-dest. Bug?
Hi again.
I just spotted another peculiarity when inspecting the rsync log. When
using --compare-dest, source files that have permissions that differ
from the "comparables" are not logged, unless you're using -i.
Here's a testing session:
$ ls -lR
.:
total 12
drwxr-xr-x 2 vidar users 4096 2005-03-31 14:16 cmp/
drwxr-xr-x 2 vidar users 4096 2005-03-31 14:23 dst/
2004 Feb 09
1
[patch] Add `--link-by-hash' option.
...LINK_BY_HASH};
static struct poptOption long_options[] = {
/* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
@@ -353,6 +355,7 @@
{"temp-dir", 'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 },
{"compare-dest", 0, POPT_ARG_STRING, &compare_dest, 0, 0, 0 },
{"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 },
+ {"link-by-hash", 0, POPT_ARG_STRING, 0, OPT_LINK_BY_HASH, 0, 0},
/* TODO: Should this take an optional int giving the compression level? */
{"compress&...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...OPT_READ_BATCH, OPT_WRITE_BATCH, OPT_LINK_BY_HASH,
OPT_REFUSED_BASE = 9000};
static struct poptOption long_options[] = {
@@ -360,6 +362,7 @@
{"temp-dir", 'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 },
{"compare-dest", 0, POPT_ARG_STRING, &compare_dest, 0, 0, 0 },
{"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 },
+ {"link-by-hash", 0, POPT_ARG_STRING, 0, OPT_LINK_BY_HASH, 0, 0},
/* TODO: Should this take an optional int giving the compression level? */
{"compress&...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...LINK_BY_HASH};
static struct poptOption long_options[] = {
/* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
@@ -359,6 +361,7 @@
{"temp-dir", 'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 },
{"compare-dest", 0, POPT_ARG_STRING, &compare_dest, 0, 0, 0 },
{"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 },
+ {"link-by-hash", 0, POPT_ARG_STRING, 0, OPT_LINK_BY_HASH, 0, 0},
/* TODO: Should this take an optional int giving the compression level? */
{"compress&...