X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/70891d2683929346847f5a7eccc135ee0352c4ec..2f999b32b511a750e0b3535377d079bedeb844e4:/time-limit.diff diff --git a/time-limit.diff b/time-limit.diff index 57ceac5..9d43c89 100644 --- a/time-limit.diff +++ b/time-limit.diff @@ -11,15 +11,15 @@ To use this patch, run these commands for a successful build: --- old/io.c +++ new/io.c -@@ -50,6 +50,7 @@ extern int remove_source_files; +@@ -53,6 +53,7 @@ extern int remove_source_files; extern int preserve_hard_links; extern char *filesfrom_host; extern struct stats stats; +extern time_t stop_at_utime; - extern struct file_list *the_file_list; + extern struct file_list *cur_flist, *first_flist; const char phase_unknown[] = "unknown"; -@@ -166,16 +167,24 @@ static void check_timeout(void) +@@ -173,16 +174,24 @@ static void check_timeout(void) { time_t t; @@ -58,7 +58,7 @@ To use this patch, run these commands for a successful build: OFF_T max_size = 0; OFF_T min_size = 0; @@ -374,6 +375,8 @@ void usage(enum logcode F) - rprintf(F," --password-file=FILE read password from FILE\n"); + rprintf(F," --password-file=FILE read daemon-access password from FILE\n"); rprintf(F," --list-only list the files instead of copying them\n"); rprintf(F," --bwlimit=KBPS limit I/O bandwidth; KBytes per second\n"); + rprintf(F," --stop-at=y-m-dTh:m Stop rsync at year-month-dayThour:minute\n"); @@ -84,7 +84,7 @@ To use this patch, run these commands for a successful build: {"backup", 'b', POPT_ARG_NONE, &make_backups, 0, 0, 0 }, {"backup-dir", 0, POPT_ARG_STRING, &backup_dir, 0, 0, 0 }, {"suffix", 0, POPT_ARG_STRING, &backup_suffix, 0, 0, 0 }, -@@ -1087,6 +1092,36 @@ int parse_arguments(int *argc, const cha +@@ -1093,6 +1098,36 @@ int parse_arguments(int *argc, const cha usage(FINFO); exit_cleanup(0); @@ -121,7 +121,7 @@ To use this patch, run these commands for a successful build: default: /* A large opt value means that set_refuse_options() * turned this option off. */ -@@ -1646,6 +1681,15 @@ void server_options(char **args,int *arg +@@ -1656,6 +1691,15 @@ void server_options(char **args,int *arg args[ac++] = arg; } @@ -140,7 +140,7 @@ To use this patch, run these commands for a successful build: --- old/rsync.yo +++ new/rsync.yo @@ -395,6 +395,8 @@ to the detailed description below for a - --password-file=FILE read password from FILE + --password-file=FILE read daemon-access password from FILE --list-only list the files instead of copying them --bwlimit=KBPS limit I/O bandwidth; KBytes per second + --stop-at=y-m-dTh:m Stop rsync at year-month-dayThour:minute @@ -148,7 +148,7 @@ To use this patch, run these commands for a successful build: --write-batch=FILE write a batched update to FILE --only-write-batch=FILE like --write-batch but w/o updating dest --read-batch=FILE read a batched update from FILE -@@ -1746,6 +1748,19 @@ transfer was too fast, it will wait befo +@@ -1748,6 +1750,19 @@ transfer was too fast, it will wait befo result is an average transfer rate equaling the specified limit. A value of zero specifies no limit.