mirror of https://github.com/digint/btrbk
documentation: add "--format=table|long|raw" command line option
parent
b65602f848
commit
956b010143
|
@ -4,9 +4,9 @@ btrbk-current
|
||||||
* Allow filtering subcommands by group as well as targets.
|
* Allow filtering subcommands by group as well as targets.
|
||||||
* Added "config print" command.
|
* Added "config print" command.
|
||||||
* Added "list" command (experimental).
|
* Added "list" command (experimental).
|
||||||
* Added "--format=table|raw" command line option, producing tabular
|
* Added "--format=table|long|raw" command line option, producing
|
||||||
and raw (machine-readable) output for "(dry)run", "tree" and
|
tabular and raw (machine-readable) output for "(dry)run", "tree"
|
||||||
"list" commands.
|
and "list" commands.
|
||||||
* Added configuration option "ssh_cipher_spec" (close: #47).
|
* Added configuration option "ssh_cipher_spec" (close: #47).
|
||||||
* Added "target raw", with GnuPG and compression support
|
* Added "target raw", with GnuPG and compression support
|
||||||
(experimental).
|
(experimental).
|
||||||
|
|
3
btrbk
3
btrbk
|
@ -155,13 +155,14 @@ sub HELP_MESSAGE
|
||||||
print STDERR " -v, --verbose be verbose (set loglevel=info)\n";
|
print STDERR " -v, --verbose be verbose (set loglevel=info)\n";
|
||||||
print STDERR " -q, --quiet be quiet (do not print summary for the \"run\" command)\n";
|
print STDERR " -q, --quiet be quiet (do not print summary for the \"run\" command)\n";
|
||||||
print STDERR " -l, --loglevel=LEVEL set logging level (warn, info, debug, trace)\n";
|
print STDERR " -l, --loglevel=LEVEL set logging level (warn, info, debug, trace)\n";
|
||||||
print STDERR " --raw-output print raw (machine-readable) output\n";
|
print STDERR " --format=FORMAT change output format, FORMAT=table|long|raw\n";
|
||||||
print STDERR " --progress show progress bar on send-receive operation\n";
|
print STDERR " --progress show progress bar on send-receive operation\n";
|
||||||
print STDERR "\n";
|
print STDERR "\n";
|
||||||
print STDERR "commands:\n";
|
print STDERR "commands:\n";
|
||||||
print STDERR " run [filter...] perform backup operations as defined in the config file\n";
|
print STDERR " run [filter...] perform backup operations as defined in the config file\n";
|
||||||
print STDERR " dryrun [filter...] don't run btrfs commands; show what would be executed\n";
|
print STDERR " dryrun [filter...] don't run btrfs commands; show what would be executed\n";
|
||||||
print STDERR " tree [filter...] shows backup tree\n";
|
print STDERR " tree [filter...] shows backup tree\n";
|
||||||
|
print STDERR " list [filter...] print source/snapshot/target relations\n";
|
||||||
print STDERR " info [filter...] print useful filesystem information\n";
|
print STDERR " info [filter...] print useful filesystem information\n";
|
||||||
print STDERR " origin <subvol> print origin information for subvolume\n";
|
print STDERR " origin <subvol> print origin information for subvolume\n";
|
||||||
print STDERR " diff <from> <to> shows new files since subvolume <from> for subvolume <to>\n";
|
print STDERR " diff <from> <to> shows new files since subvolume <from> for subvolume <to>\n";
|
||||||
|
|
48
doc/btrbk.1
48
doc/btrbk.1
|
@ -79,10 +79,12 @@ Set the level of verbosity. Accepted levels are warn, info, debug,
|
||||||
and trace.
|
and trace.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\-\-raw\-output
|
\-\-format table|long|raw
|
||||||
.RS 4
|
.RS 4
|
||||||
Print raw (machine-readable) output. Changes output format for
|
Print output in specified format. If set to "raw", prints
|
||||||
\fBrun\fR, \fBdryrun\fR and \fBtree\fR. Useful for further scripting.
|
space-separated key="value" pairs (machine-readable). Affects output
|
||||||
|
format for \fBrun\fR, \fBdryrun\fR, \fBinfo\fR and \fBtree\fR
|
||||||
|
commands. Useful for further exporting/scripting.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\-\-progress
|
\-\-progress
|
||||||
|
@ -121,25 +123,8 @@ configured retention policy will be deleted. Note that the latest
|
||||||
snapshot as well as the latest backup is always preserved, regardless
|
snapshot as well as the latest backup is always preserved, regardless
|
||||||
of the retention policy.
|
of the retention policy.
|
||||||
.PP
|
.PP
|
||||||
If the \-\-raw\-output command line option is set, print the output in
|
Use the \fI\-\-format\fR command line option to switch between
|
||||||
the following format:
|
different output formats.
|
||||||
.PP
|
|
||||||
.RS 4
|
|
||||||
snapshot <snapshot-url> <src-subvol-url>
|
|
||||||
...
|
|
||||||
.RE
|
|
||||||
.RS 4
|
|
||||||
receive <target-url> <src-subvol-url> [<parent-subvol-url>]
|
|
||||||
...
|
|
||||||
.RE
|
|
||||||
.RS 4
|
|
||||||
delete <target-url>
|
|
||||||
...
|
|
||||||
.RE
|
|
||||||
.RS 4
|
|
||||||
aborted [volume|subvolume|target] <url> -- abort_reason
|
|
||||||
...
|
|
||||||
.RE
|
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.B dryrun
|
.B dryrun
|
||||||
|
@ -164,15 +149,18 @@ STATEMENTS\fR below).
|
||||||
.RS 4
|
.RS 4
|
||||||
Print the snapshots and their corresponding backup subvolumes as a
|
Print the snapshots and their corresponding backup subvolumes as a
|
||||||
tree. Optionally filtered by [filter...] arguments (see \fIFILTER
|
tree. Optionally filtered by [filter...] arguments (see \fIFILTER
|
||||||
STATEMENTS\fR below).
|
STATEMENTS\fR below). Use the \fI\-\-format\fR command line option to
|
||||||
.PP
|
switch between different output formats.
|
||||||
If the \-\-raw\-output command line option is set, print the output in
|
|
||||||
the following format:
|
|
||||||
.PP
|
|
||||||
.RS 4
|
|
||||||
<subvol-url> <snapshot-url> <received-from-url>
|
|
||||||
...
|
|
||||||
.RE
|
.RE
|
||||||
|
.PP
|
||||||
|
.B list
|
||||||
|
[filter...]
|
||||||
|
.RS 4
|
||||||
|
Print the source/snapshot/target relations of the configured
|
||||||
|
subvolumes in a tabular form. Optionally filtered by [filter...]
|
||||||
|
arguments (see \fIFILTER STATEMENTS\fR below). Use the
|
||||||
|
\fI\-\-format\fR command line option to switch between different
|
||||||
|
output formats.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.B origin
|
.B origin
|
||||||
|
|
Loading…
Reference in New Issue