Displaying 8 results from an estimated 8 matches for "delete_befor".
Did you mean:
delete_before
2005 Sep 27
1
--delete and --dirs
rsync-2.6.6 manpage says:
--delete
[...]
This option has no effect unless directory recursion is enabled.
True. In fact, I noted that --delete doesn't delete anything if --dirs
is used rather than --recursive.
Is there any reason for --delete not to delete when used with --dirs?
Is there a way to get rsync to actually delete files on the receiving
end when using
2005 Dec 08
2
Confusing lock problem in rails
...user = self.users.find(user_id)
end
def self.delete_old
@p = Pref.find_by_setting(''autodelete'')
if @p and @p.value.to_i > 0
val = @p.value.to_i
destroy_all(["found_on <= DATE_SUB(CURDATE(), INTERVAL ? DAY)", val])
end
end
def self.delete_before(params)
date = sprintf("%04d-%02d-%02d", params[:foundon][:year],
params[:foundon][:month],
params[:foundon][:day])
deleted = Resume.destroy_all(["found_on <= ?", date])
optimize_index...
2013 Oct 24
0
patch for combining detect-renamed and fileflags patches (fwd)
...prune_empty_dirs;
- extern int protocol_version;
-+extern int detect_renamed;
- extern int protect_args;
- extern int preserve_uid;
- extern int preserve_gid;
-@@ -123,6 +124,7 @@ void set_allow_inc_recurse(void)
+@@ -125,6 +126,7 @@
allow_inc_recurse = 0;
else if (!am_sender
&& (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_r...
2023 May 17
1
[PATCH] Add --omit-{device,special}-times options
...0600
+++ devel-3.2.7/generator.c 2022-09-15 11:12:02.000000000 -0600
@@ -47,6 +47,8 @@ extern int preserve_perms;
extern int preserve_mtimes;
extern int omit_dir_times;
extern int omit_link_times;
+extern int omit_device_times;
+extern int omit_special_times;
extern int delete_mode;
extern int delete_before;
extern int delete_during;
@@ -482,7 +484,12 @@ int unchanged_attrs(const char *fname, struct file_struct *file, stat_x *sxp)
return 0;
#endif
} else {
- if (preserve_mtimes && any_time_differs(sxp, file, fname))
+ int keep_time = !preserve_mtimes ? 0
+ : S_ISDIR(file->mo...
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...;, max_size_arg);
+ if (min_age > 0) {
+ if (asprintf(&arg, "--min-age=%d", min_age) < 0)
+ goto oom;
+ args[ac++] = arg;
+ }
+ if (max_age > 0) {
+ if (asprintf(&arg, "--max-age=%d", max_age) < 0)
+ goto oom;
+ args[ac++] = arg;
+ }
if (delete_before)
args[ac++] = "--delete-before";
else if (delete_during == 2)
diff --git a/rsync.1.md b/rsync.1.md
index 2ae6f481..66dba8c3 100644
--- a/rsync.1.md
+++ b/rsync.1.md
@@ -491,6 +491,8 @@ has its own detailed description later in this manpage.
--max-delete=NUM don't d...
2011 Nov 28
0
RFC: [PATCH] Add TCP congestion control and Diffserv options
...(lp_timeout, timeout)
+FN_LOCAL_INTEGER(lp_diffserv, diffserv)
FN_LOCAL_BOOL(lp_fake_super, fake_super)
FN_LOCAL_BOOL(lp_forward_lookup, forward_lookup)
diff --git a/options.c b/options.c
index 9e95c86..6085444 100644
--- a/options.c
+++ b/options.c
@@ -69,6 +69,8 @@ int delete_during = 0;
int delete_before = 0;
int delete_after = 0;
int delete_excluded = 0;
+int diffserv = 8;
+char *congestion_alg = NULL;
int remove_source_files = 0;
int one_file_system = 0;
int protocol_version = PROTOCOL_VERSION;
@@ -776,6 +778,8 @@ void usage(enum logcode F)
rprintf(F," --address=ADDRESS bi...
2006 Jun 02
3
[PATCH] --omit-dir-changes, qsort<>mergesort issues
...revision 1.282
diff -u -r1.282 generator.c
--- generator.c 1 Jun 2006 08:04:40 -0000 1.282
+++ generator.c 2 Jun 2006 13:00:01 -0000
@@ -45,6 +45,7 @@
extern int preserve_gid;
extern int preserve_times;
extern int omit_dir_times;
+extern int omit_dir_changes;
extern int delete_mode;
extern int delete_before;
extern int delete_during;
@@ -348,10 +349,11 @@
iflags |= ITEM_REPORT_TIME;
if ((file->mode & CHMOD_BITS) != (st->st_mode & CHMOD_BITS))
iflags |= ITEM_REPORT_PERMS;
- if (preserve_uid && am_root && file->uid != st->st_uid)
+ if (preserve_uid &...
2007 Sep 22
0
rsync build on IA64 using icc
...1419: external declaration in primary source file
extern int omit_dir_times;
^
generator.c(47): remark #1419: external declaration in primary source file
extern int delete_mode;
^
generator.c(48): remark #1419: external declaration in primary source file
extern int delete_before;
^
generator.c(49): remark #1419: external declaration in primary source file
extern int delete_during;
^
generator.c(50): remark #1419: external declaration in primary source file
extern int delete_after;
^
generator.c(51): remark #1419: external decl...