search for: keep_parti

Displaying 20 results from an estimated 23 matches for "keep_parti".

Did you mean: keep_partial
2006 May 18
1
Partial files left on SIGINT
Hi, As the man page says, the --partial flag is to "keep partially transferred files". I'm assuming if I don't have partial flag any partially transferred files should be deleted. However this is not what I'm seeing. Example: (Using a big file so that rsync times a while to run. This gives me time to hit CTRL-C for the SIGINT). > mkdir example > dd if=/dev/zero
2004 Apr 27
1
[PATCH] Inplace option for rsync
...OPT_DELETE_AFTER, 0, 0 }, {"delete-excluded", 0, POPT_ARG_NONE, 0, OPT_DELETE_EXCLUDED, 0, 0 }, {"force", 0, POPT_ARG_NONE, &force_delete, 0, 0, 0 }, @@ -912,7 +915,7 @@ args[ac++] = arg; } - if (keep_partial) + if (keep_partial && !inplace) args[ac++] = "--partial"; if (force_delete) @@ -939,6 +942,11 @@ if (opt_ignore_existing && am_sender) args[ac++] = "--ignore-existing"; + if (inplace) { +...
2003 Aug 06
1
Should --progress implicitly assert -v?
...uot;stats", 0, POPT_ARG_NONE, &do_stats, 0, 0, 0 }, - {"progress", 0, POPT_ARG_NONE, &do_progress, 0, 0, 0 }, + {"progress", 0, POPT_ARG_NONE, 0, OPT_PROGRESS, 0, 0 }, {"partial", 0, POPT_ARG_NONE, &keep_partial, 0, 0, 0 }, {"ignore-errors", 0, POPT_ARG_NONE, &ignore_errors, 0, 0, 0 }, {"blocking-io", 0, POPT_ARG_VAL, &blocking_io, 1, 0, 0 }, @@ -566,6 +566,10 @@ keep_partial = 1; break; +...
2005 Jul 26
1
[patch] paranoid checksum checking
...------------ next part -------------- *** rsync-2.6.6pre1/receiver.c 2005-04-14 02:42:13.000000000 +0100 --- rsync-new/receiver.c 2005-07-26 18:06:56.000000000 +0100 *************** extern int module_id; *** 46,51 **** --- 46,52 ---- extern int ignore_errors; extern int orig_umask; extern int keep_partial; + extern int always_checksum; extern int checksum_seed; extern int inplace; extern int delay_updates; *************** int recv_files(int f_in, struct file_lis *** 649,654 **** --- 650,669 ---- exit_cleanup(RERR_FILEIO); } + /* Check that the file written to loca...
2003 May 20
0
patch for better handling of write failures (disk full)
....c Tue May 20 08:56:43 2003 @@ -243,8 +243,14 @@ /* rename failed on cross-filesystem link. Copy the file instead. */ if (copy_file(fnametmp,fname, file->mode & INITACCESSPERMS)) { - rprintf(FERROR,"copy %s -> %s : %s\n", + int err = errno; + extern int keep_partial; + rprintf(FERROR,"error copy %s -> %s : %s\n", fnametmp,fname,strerror(errno)); + /* remove partial result if disk full */ + if (err == ENOSPC && !keep_partial) { + (void)unlink(fname); + } } else { set_perms(fname,file,NULL,0); } John
2003 May 23
1
PATCH: better handling for write failures (disk full)
....c Tue May 20 08:56:43 2003 @@ -243,8 +243,14 @@ /* rename failed on cross-filesystem link. Copy the file instead. */ if (copy_file(fnametmp,fname, file->mode & INITACCESSPERMS)) { - rprintf(FERROR,"copy %s -> %s : %s\n", + int err = errno; + extern int keep_partial; + rprintf(FERROR,"error copy %s -> %s : %s\n", fnametmp,fname,strerror(errno)); + /* remove partial result if disk full */ + if (err == ENOSPC && !keep_partial) { + (void)unlink(fname); + } } else { set_perms(fname,file,NULL,0); }
2004 Jan 06
2
[patch] making rsync less verbose
...otal_written, (double)stats.total_read, --- rsync-2.6.0/options.c.orig 2003-12-30 19:16:25.000000000 +0100 +++ rsync-2.6.0/options.c 2004-01-06 17:10:19.000000000 +0100 @@ -74,6 +74,7 @@ int am_daemon = 0; int daemon_over_rsh = 0; int do_stats=0; +int show_speedup=0; int do_progress=0; int keep_partial=0; int safe_symlinks=0; @@ -275,6 +276,7 @@ rprintf(F," --blocking-io use blocking IO for the remote shell\n"); rprintf(F," --no-blocking-io turn off --blocking-io\n"); rprintf(F," --stats give some file transfer stat...
2006 May 24
0
rsync connection limit
...uld not be run" }, diff -Naur rsync-2.6.8/options.c rsync-2.6.8-new/options.c --- rsync-2.6.8/options.c Wed Mar 29 02:09:36 2006 +++ rsync-2.6.8-new/options.c Wed May 24 15:50:43 2006 @@ -93,6 +93,7 @@ int daemon_over_rsh = 0; int do_stats = 0; int do_progress = 0; +int do_timeout = 0; int keep_partial = 0; int safe_symlinks = 0; int copy_unsafe_links = 0; @@ -506,6 +507,7 @@ {"from0", '0', POPT_ARG_NONE, &eol_nulls, 0, 0, 0}, {"numeric-ids", 0, POPT_ARG_NONE, &numeric_ids, 0, 0, 0 }, {"timeout", 0, POPT_ARG_...
2001 Nov 13
2
direct write patch
...links", 0, 0, OPT_SAFE_LINKS}, {"whole-file", 0, 0, 'W'}, @@ -400,6 +403,10 @@ safe_symlinks=1; break; + case OPT_DIRECT_WRITE: + direct_write = 1; + break; + case 'h': usage(FINFO); exit_cleanup(0); @@ -554,6 +561,8 @@ keep_partial = 1; break; + + case OPT_IGNORE_ERRORS: ignore_errors = 1; break; @@ -691,6 +700,9 @@ slprintf(mdelete,sizeof(mdelete),"--max-delete=%d",max_delete); args[ac++] = mdelete; } + + if (direct_write) + args[ac++] = "--direct-write"; if (io_timeout...
2003 Apr 08
2
[Patch] Require extra --stats to emit heap statistics
...ot;, 0, POPT_ARG_NONE, &do_stats , 0, 0, 0 }, + {"stats", 0, POPT_ARG_NONE, 0, OPT_STATS, 0, 0 }, {"progress", 0, POPT_ARG_NONE, &do_progress , 0, 0, 0 }, {"partial", 0, POPT_ARG_NONE, &keep_partial , 0, 0, 0 }, {"ignore-errors", 0, POPT_ARG_NONE, &ignore_errors , 0, 0, 0 }, @@ -555,6 +555,10 @@ if (frommain) quiet++; break; + case OPT_STATS: + do_stats++; + brea...
2002 Oct 09
2
rsync-2.5.5 memory eater problem
Hi, we ran into a little problem with rsync-2.5.5. Setup: you run rsync-2.5.5 as normal rsync over ssh (ie. not connecting to a rsync server). If you start such a rsync but interrupt the pulling process with Ctrl-C, the process on the other side may start to allocate all memory on the remote machine. As fa as we have analyzed the problem, the remote rsync process wants to issue a error message
2004 May 15
1
Fwd: Re: setting checksum_seed
...0 }, {0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 }, @@ -911,6 +913,11 @@ goto oom; args[ac++] = arg; } + if (checksum_seed) { + if (asprintf(&arg, "--checksum_seed=%d", checksum_seed) < 0) + goto oom; + args[ac++] = arg; + } if (keep_partial) args[ac++] = "--partial"; --- rsync.yo 2004-04-30 11:02:43.000000000 -0700 +++ rsync.yo 2004-05-01 16:59:48.546313600 -0700 @@ -348,6 +348,7 @@ --bwlimit=KBPS limit I/O bandwidth, KBytes per second --write-batch=PREFIX write batch fileset starting with PREFIX...
2003 Jan 13
4
Please test rsync-2.5.6pre1
The first rsync-2.5.6 pre-release version is now available at: http://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre1.tar.gz ftp://rsync.samba.org/pub/rsync/preview/rsync-2.5.6pre1.tar.gz rsync://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre1.tar.gz There's also a corresponding '.sig' file that contains a gpg signature of the file; the public key is available on the
2002 Feb 18
1
fixes for bugs in error handling in rsync-2.5.2; and updates for rsync3.txt
.../cleanup.c,v retrieving revision 1.11 diff -c -r1.11 cleanup.c *** cleanup.c 23 Mar 2001 01:26:04 -0000 1.11 --- cleanup.c 18 Feb 2002 00:39:34 -0000 *************** *** 40,51 **** --- 40,56 ---- */ void _exit_cleanup(int code, const char *file, int line) { + int ocode = code; extern int keep_partial; extern int log_got_error; signal(SIGUSR1, SIG_IGN); signal(SIGUSR2, SIG_IGN); + if (verbose > 3) + rprintf(FINFO,"_exit_cleanup(code=%d, file=%s, line=%d): entered\n", + code, file, line); + if (cleanup_child_pid != -1) { int status; if (waitpid(cle...
2002 Apr 18
5
mixed case file systems.
I am having trouble with rsync when I am trying to synchronize a Windows NT volume mounted with smb_fs (FreeBSD) and a unix volume which is also exported with Samba. There are instances where the DOS short name on the NT volume ends up as upper case and then doesn't match filenames which are used in the unix volumes which have been exported by Samba. I don't know if this is a Samba
2003 Mar 30
1
[RFC][patch] dynamic rolling block and sum sizes II
...39,8 @@ /* the length of the md4 checksum */ #define MD4_SUM_LENGTH 16 #define SUM_LENGTH 16 +#define SHORT_SUM_LENGTH 2 +#define BLOCKSUM_BIAS 10 #ifndef MAXPATHLEN #define MAXPATHLEN 1024 --- options.c Sat Mar 29 12:25:34 2003 +++ options.c Sat Mar 29 15:10:42 2003 @@ -72,7 +72,7 @@ int keep_partial=0; int safe_symlinks=0; int copy_unsafe_links=0; -int block_size=BLOCK_SIZE; +int block_size=0; int size_only=0; int bwlimit=0; int delete_after=0; @@ -725,7 +725,7 @@ if (x != 1) args[ac++] = argstr; - if (block_size != BLOCK_SIZE) { + if (block_size) { snprintf(bsize,sizeof(bsize)...
2003 Mar 23
1
[RFC] dynamic checksum size
...generate_and_send_sums(buf, st.st_size, - adapt_block_size(file, block_size), f_out); + generate_and_send_sums(buf, st.st_size, f_out); close(fd); if (buf) unmap_file(buf); --- options.c Sat Mar 22 11:16:03 2003 +++ options.c.varsumlen Sat Mar 22 10:40:13 2003 @@ -72,7 +72,7 @@ int keep_partial=0; int safe_symlinks=0; int copy_unsafe_links=0; -int block_size=BLOCK_SIZE; +int block_size=0; int size_only=0; int bwlimit=0; int delete_after=0; @@ -725,7 +725,7 @@ if (x != 1) args[ac++] = argstr; - if (block_size != BLOCK_SIZE) { + if (block_size) { snprintf(bsize,sizeof(bsize)...
2004 Jun 17
1
[PATCH] make write_batch local
...evision 1.82 diff -c -b -d -r1.82 receiver.c *** a/receiver.c 14 Jun 2004 15:09:36 -0000 1.82 --- b/receiver.c 17 Jun 2004 04:01:58 -0000 *************** *** 46,51 **** --- 46,52 ---- extern int module_id; extern int ignore_errors; extern int orig_umask; + extern int write_batch; extern int keep_partial; extern int checksum_seed; *************** *** 279,284 **** --- 280,287 ---- sum_end(file_sum1); read_buf(f_in,file_sum2,MD4_SUM_LENGTH); + if (write_batch) + write_batch_delta_file(file_sum2, MD4_SUM_LENGTH); if (verbose > 2) { rprintf(FINFO,"got file_sum\n")...
2006 Apr 03
30
DO NOT REPLY [Bug 3653] New: Silence 'vanished files' messages
https://bugzilla.samba.org/show_bug.cgi?id=3653 Summary: Silence 'vanished files' messages Product: rsync Version: 2.6.8 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: count-samba@flatline.de
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