Displaying 19 results from an estimated 19 matches for "max_delete".
Did you mean:
can_delete
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 Oct 05
0
new option implemented: --delete-mdays
...if (size_only)
args[ac++] = "--size-only";
--- 1027,1036 ----
*** receiver.c Tue Oct 5 15:53:39 2004
--- /tmp/rsync-2.6.3/receiver.c Tue Sep 21 11:24:06 2004
***************
*** 22,32 ****
extern int verbose;
extern int recurse;
extern int delete_after;
extern int max_delete;
- extern int delete_mdays;
extern int csum_length;
extern struct stats stats;
extern int dry_run;
extern int read_batch;
extern int batch_gen_fd;
--- 22,31 ----
***************
*** 119,147 ****
for (i = local_file_list->count-1; i >= 0; i--) {
if (max_delete && del...
2004 Oct 18
1
Strange behaviour with --max-delete option
Hi,
When using --max-delete=NUM, NUM + 1 files get deleted.
Test it by doing this:
# mkdir src
# mkdir dest
# cd src
# touch 1 2 3 4 5
# cd ..
# rsync -avu src/ dest
# cd src
# rm 1 2
# cd ..
( Here i try to sync src and dest, but only delete one file from dest
at the time. This would prevent an accidental rm in src from
propagating to dest. )
# rsync --delete -avun --max-delete=1 src/ dest
2005 Mar 02
0
[Bug 2408] New: when more than --max-delete files are about to be deleted no error is returned
...AXPATHLEN];
static int deletion_count;
+ int deletion_test_count;
if (cvs_exclude)
add_cvs_excludes();
@@ -102,6 +103,38 @@
return;
}
+ /* if --max-delete is specified, check that not too many files will be
deleted */
+ if (max_delete) {
+
+ /* count number of files that would be deleted */
+ deletion_test_count=0;
+
+ for (j = 0; j < flist->count; j++) {
+ if (!(flist->files[j]->flags & FLAG_TOP_DIR)
+ || !S_ISDIR(flist->...
2014 Mar 28
4
[Bug 10522] New: --detect-renamed patch is causing deletions as if a 'delete flag' was supplied, when none have been
https://bugzilla.samba.org/show_bug.cgi?id=10522
Summary: --detect-renamed patch is causing deletions as if a
'delete flag' was supplied, when none have been
Product: rsync
Version: 3.1.1
Platform: x86
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
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
2013 Oct 24
0
patch for combining detect-renamed and fileflags patches (fwd)
...nder
&& (delete_before || delete_after
@@ -61,15 +61,15 @@
diff --git a/delete.c b/delete.c
--- a/delete.c
+++ b/delete.c
-@@ -25,6 +25,7 @@
+@@ -23,6 +23,7 @@
+ #include "rsync.h"
+
extern int am_root;
++extern int detect_renamed;
extern int make_backups;
extern int max_delete;
-+extern int detect_renamed;
- extern char *backup_dir;
- extern char *backup_suffix;
- extern int backup_suffix_len;
-@@ -44,6 +45,8 @@ static inline int is_backup_file(char *fn)
+ extern int force_change;
+@@ -45,6 +46,8 @@
* its contents, otherwise just checks for content. Returns DR_SUCCES...
2001 Nov 13
2
direct write patch
...--numeric-ids don't map uid/gid values by user/group name\n");
rprintf(F," --timeout=TIME set IO timeout in seconds\n");
@@ -188,7 +190,7 @@
OPT_LOG_FORMAT, OPT_PASSWORD_FILE, OPT_SIZE_ONLY, OPT_ADDRESS,
OPT_DELETE_AFTER, OPT_EXISTING, OPT_MAX_DELETE, OPT_BACKUP_DIR,
OPT_IGNORE_ERRORS, OPT_BWLIMIT, OPT_BLOCKING_IO,
- OPT_MODIFY_WINDOW};
+ OPT_MODIFY_WINDOW, OPT_DIRECT_WRITE};
static char *short_options = "oblLWHpguDCtcahvqrRIxnSe:B:T:zP";
@@ -227,6 +229,7 @@
{"perms", 0, 0, 'p'}...
2003 Jul 29
1
"-b --suffix '' --delete --backup-dir /path/" combination does not act as expected
Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20030728/49616c2f/attachment.bin
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...save_min_age;
ignore_existing = -ignore_existing;
ignore_non_existing = -ignore_non_existing;
update_only = -update_only;
diff --git a/options.c b/options.c
index fd674754..7c7f31db 100644
--- a/options.c
+++ b/options.c
@@ -129,6 +129,8 @@ int need_messages_from_generator = 0;
int max_delete = INT_MIN;
OFF_T max_size = -1;
OFF_T min_size = -1;
+int max_age = 0;
+int min_age = 0;
int ignore_errors = 0;
int modify_window = 0;
int blocking_io = -1;
@@ -698,6 +700,8 @@ static struct poptOption long_options[] = {
{"ignore-existing", 0, POPT_ARG_NONE, &ignore_...
2015 Nov 28
0
[PATCH] ignore-non-existing-directory: add variant of ignore-non-existing
...f --git a/options.c b/options.c
index 7e93ea1..7c5c53b 100644
--- a/options.c
+++ b/options.c
@@ -114,6 +114,7 @@ int fuzzy_basis = 0;
size_t bwlimit_writemax = 0;
int ignore_existing = 0;
int ignore_non_existing = 0;
+int ignore_non_existing_dirs = 0;
int need_messages_from_generator = 0;
int max_delete = INT_MIN;
OFF_T max_size = -1;
@@ -916,6 +917,7 @@ static struct poptOption long_options[] = {
{"no-one-file-system",0, POPT_ARG_VAL, &one_file_system, 0, 0, 0 },
{"no-x", 0, POPT_ARG_VAL, &one_file_system, 0, 0, 0 },
{"update",...
2004 Apr 15
0
Multiple compare-dest args
...LINK_DEST,
+ OPT_DELETE_AFTER, OPT_DELETE_EXCLUDED, OPT_COMPARE_DEST, OPT_LINK_DEST,
OPT_INCLUDE, OPT_INCLUDE_FROM, OPT_MODIFY_WINDOW,
OPT_READ_BATCH, OPT_WRITE_BATCH,
OPT_REFUSED_BASE = 9000};
@@ -358,7 +359,7 @@
{"max-delete", 0, POPT_ARG_INT, &max_delete, 0, 0, 0 },
{"timeout", 0, POPT_ARG_INT, &io_timeout, 0, 0, 0 },
{"temp-dir", 'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 },
- {"compare-dest", 0, POPT_ARG_STRING, &compare_dest, 0, 0, 0 },
+ {"compare-dest",...
2016 Jan 16
0
[PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
...f --git a/options.c b/options.c
index 7e93ea1..7c5c53b 100644
--- a/options.c
+++ b/options.c
@@ -114,6 +114,7 @@ int fuzzy_basis = 0;
size_t bwlimit_writemax = 0;
int ignore_existing = 0;
int ignore_non_existing = 0;
+int ignore_non_existing_dirs = 0;
int need_messages_from_generator = 0;
int max_delete = INT_MIN;
OFF_T max_size = -1;
@@ -916,6 +917,7 @@ static struct poptOption long_options[] = {
{"no-one-file-system",0, POPT_ARG_VAL, &one_file_system, 0, 0, 0 },
{"no-x", 0, POPT_ARG_VAL, &one_file_system, 0, 0, 0 },
{"update",...
2015 Nov 28
0
[PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
...f --git a/options.c b/options.c
index 7e93ea1..7c5c53b 100644
--- a/options.c
+++ b/options.c
@@ -114,6 +114,7 @@ int fuzzy_basis = 0;
size_t bwlimit_writemax = 0;
int ignore_existing = 0;
int ignore_non_existing = 0;
+int ignore_non_existing_dirs = 0;
int need_messages_from_generator = 0;
int max_delete = INT_MIN;
OFF_T max_size = -1;
@@ -916,6 +917,7 @@ static struct poptOption long_options[] = {
{"no-one-file-system",0, POPT_ARG_VAL, &one_file_system, 0, 0, 0 },
{"no-x", 0, POPT_ARG_VAL, &one_file_system, 0, 0, 0 },
{"update",...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch?
Thanks for the reminder.
I've just committed Jos's rsync+ patch onto the
"branch_mbp_rsyncplus_merge" branch. If it works OK and nobody
screams I will move it across onto the main tree tomorrow or
Wednesday.
I see the patch doesn't add documentation about the new options to the
man page, so we should fix that in the future.
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
...t_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 that don't exist on the sending side\n");...
2003 Jun 25
3
patch draft for extended attributes on linux
...ght (C) 2000, 2001, 2002 by Martin Pool <mbp@samba.org>
+ * Copyright (C) 2000-2003 by Martin Pool <mbp@samba.org>
*
* 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
@@ -83,6 +83,7 @@ int max_delete=0;
int ignore_errors=0;
int modify_window=0;
int blocking_io=-1;
+int opt_xattr = 0;
/** Network address family. **/
@@ -134,12 +135,17 @@ static void print_rsync_version(enum log
char const *hardlinks = "no ";
char const *links = "no ";
char const *i...
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
2007 Sep 22
0
rsync build on IA64 using icc
...nt safe_symlinks;
^
generator.c(84): remark #1419: external declaration in primary source file
extern long block_size; /* "long" because popt can't set an int32. */
^
generator.c(85): remark #1419: external declaration in primary source file
extern int max_delete;
^
generator.c(86): remark #1419: external declaration in primary source file
extern int force_delete;
^
generator.c(87): remark #1419: external declaration in primary source file
extern int one_file_system;
^
generator.c(88): remark #1419: external dec...