documentation: btrbk.1.asciidoc: cleanup

pull/204/head
Axel Burri 2017-10-09 15:28:34 +02:00
parent 3df8984337
commit 0231051162
1 changed files with 38 additions and 33 deletions

View File

@ -9,19 +9,21 @@ btrbk(1)
NAME NAME
---- ----
btrbk - backup tool for btrfs volumes btrbk - backup tool for btrfs subvolumes
SYNOPSIS SYNOPSIS
-------- --------
[literal] [literal]
btrbk [-h|--help] [--version] [-c|--config <file>] btrbk [-h|--help] [--version]
[-n|--dry-run] [-p|--preserve] [-c|--config <file>] [-n|--dry-run]
[--preserve-snapshots] [--preserve-backups] [-p|--preserve] [--preserve-snapshots] [--preserve-backups]
[-v|--verbose] [-q|--quiet] [-l|--loglevel <level>] [-v|--verbose] [-q|--quiet] [-l|--loglevel <level>]
[-t|--table] [--format <output-format>] [-t|--table] [--format <output-format>]
[--progress] [--print-schedule] [--progress] [--print-schedule]
[--override <config_option>=<value>]
[--lockfile <file>]
<command> [<args>] <command> [<args>]
@ -114,16 +116,16 @@ OPTIONS
*resume*, *prune* and *archive* commands. Use the '--format' *resume*, *prune* and *archive* commands. Use the '--format'
command line option to switch between different output formats. command line option to switch between different output formats.
--override <config_option>=<value>::
Override a configuration option <config_option> with
<value>. Globally, for ALL contexts. Use with care!
--lockfile <file>:: --lockfile <file>::
Create lockfile <file> on startup; checks lockfile before running Create lockfile <file> on startup; checks lockfile before running
any btrfs commands (using perl "flock"), and exits if the lock is any btrfs commands (using perl "flock"), and exits if the lock is
held by another btrbk instance. Overrides configuration option held by another btrbk instance. Overrides configuration option
"lockfile". Ignored on dryrun ('-n', '--dry-run'). "lockfile". Ignored on dryrun ('-n', '--dry-run').
--override <config_option>=<value>::
Override a configuration option <config_option> with
<value>. Globally, for ALL contexts. Use with care!
COMMANDS COMMANDS
-------- --------
@ -131,8 +133,12 @@ COMMANDS
=== Actions === Actions
The following commands are used to create snapshots and/or The following commands are used to create snapshots and/or
backups. All actions can operate in dry-run mode ('-n', backups. All actions can operate in dry-run mode ('-n', '--dry-run').
'--dry-run'). Use the '--format' command line option to switch between different
output formats.
See section RETENTION POLICY in *btrbk.conf*(5) for information on
configuring the retention policy.
*run* [filter...]:: *run* [filter...]::
Perform snapshot and backup operations as specified in the Perform snapshot and backup operations as specified in the
@ -173,12 +179,7 @@ backups. All actions can operate in dry-run mode ('-n',
policy will be deleted. Note that the latest snapshot (the one policy will be deleted. Note that the latest snapshot (the one
created in step 1) as well as the latest snapshot/backup pair are created in step 1) as well as the latest snapshot/backup pair are
always preserved, regardless of the retention policy. always preserved, regardless of the retention policy.
+
See section RETENTION POLICY in `btrbk.conf`(5)
for information on configuring the retention policy.
Use the '--format' command line option to switch between
different output formats.
*dryrun* [filter...]:: *dryrun* [filter...]::
Don't run any btrfs commands that would alter the filesystem, just Don't run any btrfs commands that would alter the filesystem, just
@ -227,6 +228,12 @@ filesystem, you need to create them by hand (e.g. by running "btrfs
subvolume create <target>/dir"). Check the output of --dry-run if subvolume create <target>/dir"). Check the output of --dry-run if
unsure. unsure.
*clean* [filter...]::
Delete incomplete (garbled) backups. Incomplete backups can be
left behind on network errors or kill signals while a send/receive
operation is ongoing, and are identified by the "received_uuid"
flag not being set on a target (backup) subvolume.
=== Informative Commands === Informative Commands
@ -246,27 +253,23 @@ file system.
Available subcommands: Available subcommands:
+ +
-- --
ifndef::backend-docbook[]
[horizontal] [horizontal]
*snapshots*;; All snapshots (and corresponding backups). endif::backend-docbook[]
*backups*;; All backups (and corresponding snapshots). *snapshots*;; List all snapshots (and corresponding backups).
*latest*;; Most recent common snapshot/backup pair, or most recent *backups*;; List all backups (and corresponding snapshots).
snapshot if no common found. *latest*;; List most recent common snapshot/backup pair, or most
*config*;; Configured source/snapshot/target relations. recent snapshot if no common found.
*source*;; Configured source/snapshot relations. *config*;; List configured source/snapshot/target relations.
*volume*;; Configured volume sections. *source*;; List configured source/snapshot relations.
*target*;; Configured targets. *volume*;; List configured volume sections.
*target*;; List configured targets.
-- --
+ +
Use the '--format' command line option to switch between Use the '--format' command line option to switch between
different output formats. different output formats.
*clean* [filter...]::
Delete incomplete (garbled) backups. Incomplete backups can be
left behind on network errors or kill signals while a send/receive
operation is ongoing, and are identified by the "received_uuid"
flag not being set on a target (backup) subvolume.
*usage* [filter...]:: *usage* [filter...]::
Print filesystem usage information for all source/target volumes, Print filesystem usage information for all source/target volumes,
optionally filtered by [filter...] arguments (see optionally filtered by [filter...] arguments (see
@ -293,6 +296,10 @@ FILTER STATEMENTS
Filter arguments are accepted in form: Filter arguments are accepted in form:
<group-name>::
Matches the 'group' configuration option of a 'volume',
'subvolume' or 'target' section.
[hostname:]<volume-directory>:: [hostname:]<volume-directory>::
Matches all subvolumes and targets of a 'volume' configuration Matches all subvolumes and targets of a 'volume' configuration
section. section.
@ -308,10 +315,6 @@ Filter arguments are accepted in form:
Matches a single target of a 'target' section within a 'subvolume' Matches a single target of a 'target' section within a 'subvolume'
section with given <snapshot-name>. section with given <snapshot-name>.
<group-name>::
Matches the 'group' configuration option of a 'volume',
'subvolume' or 'target' section.
For convenience, [hostname:] can be specified as either "hostname:" or For convenience, [hostname:] can be specified as either "hostname:" or
"ssh://hostname/". "ssh://hostname/".
@ -330,7 +333,9 @@ EXIT STATUS
*btrbk* returns the following error codes: *btrbk* returns the following error codes:
ifndef::backend-docbook[]
[horizontal] [horizontal]
endif::backend-docbook[]
0:: No problems occurred. 0:: No problems occurred.
1:: Generic error code. 1:: Generic error code.
2:: Parse error: when parsing command-line options or configuration 2:: Parse error: when parsing command-line options or configuration