Displaying 20 results from an estimated 35 matches for "server_options".
2013 Oct 21
1
use_safe_inc_flist not set for 3.1.0 client -> 3.0.9 daemon
...ult) file transfer, the variable
use_safe_inc_flist is not set (affecting how I/O errors are handled
during file list generation).
so it is set for:
3.0.9 client -> 3.0.9 daemon
3.0.9 client -> 3.1.0 daemon
3.1.0 client -> 3.1.0 daemon
but not for:
3.1.0 client -> 3.0.9 daemon
In server_options() in options.c, the client does not automatically send 'f'
anymore. Unless this has been specifically disabled (?), here's a
patch to enable safe incremental file lists between a 3.1.0 client and
a pre 3.1.0 daemon (protocol version 30)
--- options.c.ORIG 2013-06-12 06:28:45.00000...
2002 Mar 15
2
rsync: transmitting always whole files
...ir> <user>@<host>:<dir on host>
After updating from rsync 2.5.2 to 2.5.4 I noticed that modified files are
always copied completely. The problem seems to be related to the new (in
2.5.3) option -no-whole-file. The global variable whole_file is initialized
to -1 in options.c. In server_options() (options.c) it is set to zero if the
original value has not been changed. A value of zero on whole_file is not
transmitted to the remote rsync however.
So the remote rsync has -1 instead of zero on its whole_file variable. To
fix the problem I applied the following patch that forwards --no-whole-...
2002 Apr 15
3
Initial debug of client - Need command line help
I am trying to debug the RSYNC client and server by single stepping
through them.
The server seems to ok up to the point where it is waiting for the
client connection.
On the client side, I am having trouble finding the right options so
that it will connect up to the local server with out fork() a copy of
itself or trying to exec the rsh command.
This is on RSYNC 2.5.5 on OpenVMS Alpha.
If
2002 Jan 31
2
configure --with-rsh=CMD and default blocking-IO support
...G_WITH(rsync-path,
[ --with-rsync-path=PATH set default --rsync-path to PATH (default: \"rsync\")],
[ RSYNC_PATH="$with_rsync_path" ],
Index: rsync/main.c
--- rsync/main.c 25 Jan 2002 10:07:41 -0000 1.138
+++ rsync/main.c 30 Jan 2002 18:45:22 -0000
@@ -209,8 +209,19 @@
server_options(args,&argc);
-
- if (strcmp(cmd, RSYNC_RSH) == 0) blocking_io = 1;
+ if (*cmd == '@') {
+ if (*++cmd == '@') {
+ cmd++;
+ blocking_io = 0;
+ } else
+ blocking_io = 1;
+ args[0] = cmd;
+ } else if (strcmp(cmd, "rsh") == 0
+#if HAVE_REMSH
+ || strcmp...
2010 Jun 15
3
about rsyncing of block devices
...{"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 },
{"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 },
{"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 },
@@ -2069,6 +2072,9 @@ void server_options(char **args, int *ar
else if (remove_source_files)
args[ac++] = "--remove-sent-files";
+ if (copy_devices)
+ args[ac++] = "--copy-devices";
+
if (ac > MAX_SERVER_ARGS) { /* Not possible... */
rprintf(FERROR, "argc overflow in server_options().\n");
e...
2001 Oct 09
1
new rsync feature
...eserve group
-g, --group=GROUP specify group
now i have three questions:
1. is this something folks would be interested in adding to rsync?
2. if so, how would i go about adding my patch to the Source?
3. with my changes, the feature works locally but not remotely.
in options.c:server_options(), i've added code to pass args on to the
server, but i don't think i'm doing it correctly. if anyone would
be willing to take my patch and see what they think is happening,
id' be grateful.
cheers,
-- doug mcbride
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).
2004 Dec 22
2
possible bug with --files-from and --no-relative options
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 925 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20041222/36f828dc/attachment.gif
2005 Mar 17
1
odd behaviour change (2.6.3 > 2.6.4pre3)
Synopsis: Prior to the 2.6.4pre versions, issuing 'rsync rsync://host/module/' behaved effectively as 'ls -l'. I've toyed with various options in an attempt to get an 'ls -l' style output, but to no avail.
As I have a small handful of scripts that rely on this no-longer-functioning functionality, this could be considered a Bad Thing(TM).
Following is an example of
2007 Oct 07
2
DO NOT REPLY [Bug 5012] New: iconv: client charset used by server process
...lled like
rsync --iconv=UTF-8-MAC,UTF-8 SOURCE HOST:DEST
the client charset, here UTF-8-MAC, is forwarded to the server process rather
than the specified destination charset UTF-8. This is due a bug in
setup_iconv() where iconv_opt isn't truncated to the destination charset as
expected by server_options(...).
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
2008 Mar 11
0
[PATCH] Comment an obscure bit of code that sets the --suffix-dels default.
...int frommain)
backup_suffix);
return 0;
}
+ /* --suffix-dels defaults to --suffix, or empty for a client given an
+ * explicit --backup-dir-dels (just as --suffix defaults to empty when
+ * a --backup-dir is given). The second case does not apply to the
+ * server for consistency with server_options, which sends --suffix-dels
+ * to the server iff it differs from --suffix. */
if (!backup_suffix_dels)
backup_suffix_dels = backup_dir_dels && !am_server ? "" : backup_suffix;
backup_suffix_dels_len = strlen(backup_suffix_dels);
--
1.5.4.3.193.g6dd0e
2008 Sep 23
1
error receiving files from protocol 29 server
In debian bug #493559 (http://bugs.debian.org/493559) the problem is
that when requesting a file from an older version rsync, the remote
server gives an error:
$ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp
rsync: on remote machine: -: unknown option
rsync error: requested action not supported (code 4) at clientserver.c(517)
rsync: connection unexpectedly closed (4 bytes
2009 Oct 15
1
PATCH: --write-devices to allow synchronising to a block device
...else if (remove_source_files)
args[ac++] = "--remove-sent-files";
+ if (write_devices)
+ args[ac++] = "--write-devices";
+
if (ac > MAX_SERVER_ARGS) { /* Not possible... */
rprintf(FERROR, "argc overflow in server_options().\n");
exit_cleanup(RERR_MALLOC);
diff -ru rsync-3.0.6/receiver.c rsync-3.0.6-writedev/receiver.c
--- rsync-3.0.6/receiver.c 2009-04-13 07:48:59.000000000 +1200
+++ rsync-3.0.6-writedev/receiver.c 2009-10-15 20:54:22.000000000 +1300
@@ -38,6 +38,7 @@
extern int relat...
2009 May 12
1
--copy-links and --hard-links
Hi,
I want to use rsync in a may be unusual way:
I have a source tree containing lots of symbolic links and I use
the option "--copy-links" to get the physical files (the referents of the symlinks)
on the target host.
As the host uses the synchronized files in a read-only fashion, I also want to get
hardlinks for all identical files, to save space. Thus I also use
2008 Oct 20
1
Patch for GPFS support
List,
We, IBM, have developed a patch that enhances RSYNC.
This patch provides extensions to RSYNC to map to and use filesystem
extensions present in the IBM GPFS cluster filesystem.
(GPFS is a cluster filesystem for Linux and AIX that provides additional
attributes such as NFSv4 ACLs, extended attributes and windows attributes
in addition to the common posix permissions)
This will greatly
2020 Feb 06
0
[PATCH] Add support for zstd compression
...ust %d <= x <= %d for ZSTD\n",
+ ZSTD_minCLevel(), ZSTD_maxCLevel());
+ return 0;
+ }
+
+ if (refused_compress) {
+ create_refuse_error(refused_compress);
+ return 0;
+ }
+ }
+#endif
#ifdef HAVE_SETVBUF
if (outbuf_mode && !am_server) {
@@ -2503,6 +2547,8 @@ void server_options(char **args, int *argc_p)
argstr[x++] = 'S';
if (do_compression == 1)
argstr[x++] = 'z';
+ if (do_compression_zstd == 1)
+ argstr[x++] = 'Z';
set_allow_inc_recurse();
@@ -2577,6 +2623,12 @@ void server_options(char **args, int *argc_p)
args[ac++] = arg;
}...
2007 Oct 16
3
To inc_recurse or not to inc_recurse? [Re: 3.0.0pre2: bookend breakage (2 different errors)]
...lient
disables incremental recursion because of --delete-after but doesn't
send the option to the server, so the server has no idea that it is
supposed to disable incremental recursion. The other options that can
disable incremental recursion (see compat.c) may cause the same crash.
I suppose server_options could be changed to send all of these options
unconditionally. However, a more discreet and much more robust
solution would be for the client and server to negotiate whether to
incrementally recurse just after negotiating the protocol version.
Matt
2004 Apr 27
1
rsync-2.6.1 close() fixes
...,
{"dry-run", 'n', POPT_ARG_NONE, &dry_run, 0, 0, 0 },
{"sparse", 'S', POPT_ARG_NONE, &sparse_files, 0, 0, 0 },
{"cvs-exclude", 'C', POPT_ARG_NONE, &cvs_exclude, 0, 0, 0 },
@@ -798,6 +801,8 @@ void server_options(char **args,int *arg
/* the -q option is intentionally left out */
if (make_backups)
argstr[x++] = 'b';
+ if (do_fsync)
+ argstr[x++] = 'f';
if (update_only)
argstr[x++] = 'u';
if (dry_run)
--- rsync-2.6.1/util.c.bak 2004-04-23 01:17:15.000000000 +0300
+++ rsy...
2023 May 17
1
[PATCH] Add --omit-{device,special}-times options
...,
{"modify-window", '@', POPT_ARG_INT, &modify_window, OPT_MODIFY_WINDOW, 0, 0 },
{"super", 0, POPT_ARG_VAL, &am_root, 2, 0, 0 },
{"no-super", 0, POPT_ARG_VAL, &am_root, 0, 0, 0 },
@@ -2815,6 +2821,10 @@ void server_options(char **args, int *argc_p)
args[ac++] = "--size-only";
if (do_stats)
args[ac++] = "--stats";
+ if (omit_device_times)
+ args[ac++] = "--omit-device-times";
+ if (omit_special_times)
+ args[ac++] = "--omit-special-times";
} else {
if (skip...
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...0 },
{"max-alloc", 0, POPT_ARG_STRING, &max_alloc_arg, 0, 0, 0 },
{"sparse", 'S', POPT_ARG_VAL, &sparse_files, 1, 0, 0 },
{"no-sparse", 0, POPT_ARG_VAL, &sparse_files, 0, 0, 0 },
@@ -2815,6 +2819,16 @@ void server_options(char **args, int *argc_p)
args[ac++] = safe_arg("--min-size", min_size_arg);
if (max_size >= 0)
args[ac++] = safe_arg("--max-size", max_size_arg);
+ if (min_age > 0) {
+ if (asprintf(&arg, "--min-age=%d", min_age) < 0)
+ goto oom;
+ a...