Displaying 17 results from an estimated 17 matches for "only_existing".
2005 Apr 06
2
backup option
Hi,
I have question about the behavior of --backup-dir with
--delete-after option.
In my testing with version 2.6.4, it appears that the backup
option only backups altered files. Files that will be deleted on the
destination system will NOT be placed in --backup-dir location. I would
like to back up deleted files. Is there a way to do this?
Thanks
2004 Aug 06
4
[Bug 1582] rsync dry run cannot find missing folders, contradicts actual run.
https://bugzilla.samba.org/show_bug.cgi?id=1582
------- Additional Comments From wayned@samba.org 2004-08-05 11:21 -------
Created an attachment (id=594)
--> (https://bugzilla.samba.org/attachment.cgi?id=594&action=view)
Fix problem with --dry-run (-n)
This patch avoids a fatal error when using --dry-run and the destination
directory does not exist on the receiver.
--
Configure
2005 Apr 25
2
How about a --min-size option, next to --max-size
There's a rather old bug report in Debian's bug tracking system
(see http://bugs.debian.org/27126) about wanting to be able to specify
the maximum file size, as well as the minimum file size. Here's the
text:
Sometimes, it's useful to specify a file size range one is
interested in.
For example, I'd like to keep an up-to-date mirror of Debian, but I
currently
2005 Apr 10
1
PATCH: cosmetic fix to output with --existing -vv
...uot;
not creating new file "newdir/newfile"
not creating new directory "newdir/subdir"
This following simple patch fixes this.
Paul Slootman
--- generator.c.orig 2005-04-10 21:15:07.000000000 +0200
+++ generator.c 2005-04-10 21:15:08.000000000 +0200
@@ -665,7 +665,8 @@
if (only_existing && statret == -1 && stat_errno == ENOENT) {
/* we only want to update existing files */
if (verbose > 1) {
- rprintf(FINFO, "not creating new file \"%s\"\n",
+ rprintf(FINFO, "not creating new %s \"%s\"\n",
+...
2004 Oct 05
0
new option implemented: --delete-mdays
...s\n");
rprintf(F," --partial keep partially transferred files\n");
--- 262,271 ----
***************
*** 337,347 ****
{"delete", 0, POPT_ARG_NONE, &delete_mode, 0, 0, 0 },
{"existing", 0, POPT_ARG_NONE, &only_existing, 0, 0, 0 },
{"ignore-existing", 0, POPT_ARG_NONE, &opt_ignore_existing, 0, 0, 0 },
{"delete-after", 0, POPT_ARG_NONE, 0, OPT_DELETE_AFTER, 0, 0 },
{"delete-excluded", 0, POPT_ARG_NONE, 0, OPT_DELETE_EXCLUDED, 0,...
2004 Apr 15
0
Multiple compare-dest args
...;
}
file_checksum(fname,sum,st->st_size);
return memcmp(sum, file->u.sum, protocol_version < 21 ? 2
@@ -270,7 +270,7 @@
int statret;
char *fnamecmp;
char fnamecmpbuf[MAXPATHLEN];
- extern char *compare_dest;
+ extern char *compare_dest[];
extern int list_only;
extern int only_existing;
extern int orig_umask;
@@ -408,11 +408,15 @@
fnamecmp = fname;
- if (statret == -1 && compare_dest != NULL) {
+ if (statret == -1 && compare_dest[0] != NULL) {
/* try the file at compare_dest instead */
int saveerrno = errno;
- pathjoin(fnamecmpbuf, sizeof fnamecmpbu...
2003 Sep 14
2
rsync error: error in rsync protocol data stream (code 12) at io.c(463)
Hi,
I'm having a problem rsyncing one file (since I signed it). It seems that
the content of a file is able to cause problems in the protocol.
building file list ...
28820 files to consider
apt/packages/avifile/
apt/packages/avifile/avifile-0.7.34-1.dag.rh90.i386.rpm
rsync: error writing 4 unbuffered bytes - exiting: Broken pipe
rsync error: error in rsync protocol data stream (code
2004 Apr 19
3
[PATCH] time limit
...pre-2_modified/options.c
--- rsync-2.6.1pre-2/options.c 2004-04-17 13:07:23.000000000 -0400
+++ rsync-2.6.1pre-2_modified/options.c 2004-04-19 16:07:57.000000000 -0400
@@ -83,6 +83,7 @@
int copy_unsafe_links = 0;
int size_only = 0;
int bwlimit = 0;
+int timelimit = 0;
int delete_after = 0;
int only_existing = 0;
int opt_ignore_existing = 0;
@@ -288,6 +289,7 @@
rprintf(F," --log-format=FORMAT log file transfers using specified format\n");
rprintf(F," --password-file=FILE get password from FILE\n");
rprintf(F," --bwlimit=KBPS limit I/O bandw...
2002 Apr 03
3
metadata in dryrun mode
As I reported a while back rsync doesn't handle metadata (permissions and
ownership) in dryrun mode.
I offered to make a patch and that offer still stands. I didn't have the
time for it until now and want to pick it up again. I had some ugly hack
back then but I want to redo it in a clean way.
I would like some input on my thoughts.
IMHO, it would be ideally if the check for dry_run
2004 Apr 27
1
[PATCH] Inplace option for rsync
...f all
symlinks\n");
rprintf(F," --copy-unsafe-links copy the referent of
\"unsafe\" symlinks\n");
@@ -321,6 +323,7 @@
{"delete", 0, POPT_ARG_NONE, &delete_mode, 0, 0, 0 },
{"existing", 0, POPT_ARG_NONE, &only_existing, 0, 0, 0 },
{"ignore-existing", 0, POPT_ARG_NONE, &opt_ignore_existing, 0, 0,
0 },
+ {"inplace", 0, POPT_ARG_NONE, &inplace, 0, 0, 0 },
{"delete-after", 0, POPT_ARG_NONE, 0,
OPT_DELETE_AFTER, 0, 0 },
{"delete...
2004 Apr 22
2
[PATCH] --timelimit and --stopat
...pre-2_modified/options.c
--- rsync-2.6.1pre-2/options.c 2004-04-17 13:07:23.000000000 -0400
+++ rsync-2.6.1pre-2_modified/options.c 2004-04-22 15:46:03.000000000 -0400
@@ -83,6 +83,7 @@
int copy_unsafe_links = 0;
int size_only = 0;
int bwlimit = 0;
+int timelimit = 0;
int delete_after = 0;
int only_existing = 0;
int opt_ignore_existing = 0;
@@ -142,6 +143,9 @@
* address, or a hostname. **/
char *bind_address;
+/** YYMMDDHHMMSS format for the --stopat */
+char *stopat;
+
static void print_rsync_version(enum logcode f)
{
@@ -288,6 +292,8 @@
rprintf(F," --log-format=FORMAT log f...
2005 Jan 05
1
rsync filename heuristics
...; @@ -203,9 +258,6 @@
> struct sum_struct *s;
> int statret;
> struct file_struct *file = flist->files[i];
> - char *fnamecmp;
> - char fnamecmpbuf[MAXPATHLEN];
> - extern char *compare_dest;
> extern int list_only;
> extern int preserve_perms;
> extern int only_existing;
> @@ -341,82 +393,29 @@
> return;
> }
>
> - fnamecmp = fname;
> -
> - if ((statret == -1) && (compare_dest != NULL)) {
> - /* try the file at compare_dest instead */
> - int saveerrno = errno;
> - snprintf(fnamecmpbuf,MAXPATHLEN,"%s/%s",com...
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
..._multiplex_out(f_out);
if (argc == 0) {
list_only = 1;
Index: options.c
--- options.c 15 Jan 2004 17:43:34 -0000 1.124
+++ options.c 17 Jan 2004 05:04:55 -0000
@@ -81,12 +81,14 @@ int copy_unsafe_links=0;
int size_only=0;
int bwlimit=0;
int delete_after=0;
+int delete_sent_files = 0;
int only_existing=0;
int opt_ignore_existing=0;
int max_delete=0;
int ignore_errors=0;
int modify_window=0;
int blocking_io=-1;
+int need_messages_from_generator = 0;
unsigned int block_size = 0;
@@ -245,6 +247,7 @@ void usage(enum logcode F)
rprintf(F," --delete delete files tha...
2004 Jun 17
1
[PATCH] make write_batch local
...-r1.87 generator.c
*** a/generator.c 11 Jun 2004 07:40:51 -0000 1.87
--- b/generator.c 17 Jun 2004 04:01:55 -0000
***************
*** 48,53 ****
--- 48,54 ----
extern int local_server;
extern int read_batch;
extern int write_batch;
+ extern int read_batch;
extern int list_only;
extern int only_existing;
extern int orig_umask;
***************
*** 124,132 ****
/*
* set (initialize) the size entries in the per-file sum_struct
! * calulating dynamic block ans checksum sizes.
*
! * This is only called from generate_and_send_sums() but is a seperate
* function to encapsulate the logi...
2004 Apr 20
1
improved atime patch
...dex: generator.c
===================================================================
RCS file: /cvsroot/rsync/generator.c,v
retrieving revision 1.79
diff -u -w -r1.79 generator.c
--- generator.c 15 Apr 2004 16:55:23 -0000 1.79
+++ generator.c 20 Apr 2004 21:06:18 -0000
@@ -50,6 +50,7 @@
extern int only_existing;
extern int orig_umask;
extern int safe_symlinks;
+extern int copy_atimes;
/* choose whether to skip a particular file */
@@ -97,7 +98,11 @@
return 0;
}
- return (cmp_modtime(st->st_mtime,file->modtime) == 0);
+ if (copy_atimes && cmp_time(st->st_atime,file->...
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
2002 Aug 05
5
[patch] read-devices
...return s;
}
@@ -245,8 +246,9 @@
if (verbose > 2)
rprintf(FINFO,"recv_generator(%s,%d)\n",fname,i);
statret = link_stat(fname,&st);
+ { int errsave=errno; rprintf(FINFO, "#ET# recv_generator: statret==%d, errno=%d\n", statret, errno); errno=errsave; }
if (only_existing && statret == -1 && errno == ENOENT) {
/* we only want to update existing files */
if (verbose > 1) rprintf(FINFO, "not creating new file \"%s\"\n",fname);
@@ -337,9 +339,9 @@
return;
}
#ifdef HAVE_MKNOD
- if (am_root && preserve_devices...