btrbk: add "-S" command line option (shortcut for --print-schedule)

pull/260/head
Axel Burri 2018-10-15 16:25:07 +02:00
parent 7a8df85f2e
commit 56ee8acf3b
4 changed files with 6 additions and 5 deletions

View File

@ -5,6 +5,7 @@ btrbk-0.27.0-dev
"readlink" and "cat /proc/self/mountinfo").
* Add "preserve_hour_of_day" configuration option (close #202).
* Allow backup of filesystem root using "subvolume ." (close #240).
* Add "-S" command line option (shortcut for --print-schedule).
* Bugfix: correct scheduling of "first weekly backup in month/year"
(close #217). Note that this change may result in (previously
preserved) backups to be deleted!

4
btrbk
View File

@ -321,7 +321,7 @@ options:
-l, --loglevel=LEVEL set logging level (warn, info, debug, trace)
-t, --table change output to table format
--format=FORMAT change output format, FORMAT=table|long|raw
--print-schedule print scheduler details (for the "run" command)
-S, --print-schedule print scheduler details (for the "run" command)
--progress show progress bar on send-receive operation
commands:
@ -4451,7 +4451,7 @@ MAIN:
'progress' => \$show_progress,
'table|t' => sub { $output_format = "table" },
'format=s' => \$output_format,
'print-schedule' => \$print_schedule,
'print-schedule|S' => \$print_schedule,
'lockfile=s' => \$lockfile_cmdline,
'override=s' => \@config_override_cmdline, # e.g. --override=incremental=no
))

View File

@ -21,7 +21,7 @@ btrbk [-h|--help] [--version]
[-p|--preserve] [--preserve-snapshots] [--preserve-backups]
[-v|--verbose] [-q|--quiet] [-l|--loglevel <level>]
[-t|--table] [--format <output-format>]
[--progress] [--print-schedule]
[--progress] [-S|--print-schedule]
[--override <config_option>=<value>]
[--lockfile <file>]
<command> [<args>]
@ -125,7 +125,7 @@ OPTIONS
--progress::
Show progress bar on send-receive operation.
--print-schedule::
-S, --print-schedule::
Print detailed scheduler information on *run*, *snapshot*,
*resume*, *prune* and *archive* commands. Use the '--format'
command line option to switch between different output formats.

View File

@ -424,7 +424,7 @@ The reference time (which defines the beginning of a day, week, month
or year) for all date/time calculations is the local time of the host
running btrbk.
Hint: Run btrbk with the '--print-schedule' option to get a
Hint: Run btrbk with the '-S', '--print-schedule' option to get a
comprehensive output of the scheduler results.
Caveats: