mirror of https://github.com/digint/btrbk
documentation: disable hyphenation and justification in man-pages; use .PP and .RS 4 instead of .TP, which creates more predictable output
parent
5b0e618632
commit
bed9fe1f66
53
doc/btrbk.1
53
doc/btrbk.1
|
@ -1,8 +1,14 @@
|
||||||
.TH "btrbk" "1" "2015-09-02" "btrbk v0.20.0" ""
|
.TH "btrbk" "1" "2015-09-02" "btrbk v0.20.0" ""
|
||||||
|
.\" disable hyphenation
|
||||||
|
.nh
|
||||||
|
.\" disable justification (adjust text to left margin only)
|
||||||
|
.ad l
|
||||||
.SH NAME
|
.SH NAME
|
||||||
btrbk \- backup tool for btrfs volumes
|
btrbk \- backup tool for btrfs volumes
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
.nf
|
||||||
\fBbtrbk\fR [\-\-version] [\-\-help] [\-c <file>] [\-p] [\-v] [\-q] [\-l <level>] <command> [<args>]
|
\fBbtrbk\fR [\-\-version] [\-\-help] [\-c <file>] [\-p] [\-v] [\-q] [\-l <level>] <command> [<args>]
|
||||||
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
\fBbtrbk\fR is a backup tool for btrfs subvolumes, taking advantage of
|
\fBbtrbk\fR is a backup tool for btrfs subvolumes, taking advantage of
|
||||||
btrfs specific capabilities to create atomic snapshots and transfer
|
btrfs specific capabilities to create atomic snapshots and transfer
|
||||||
|
@ -10,45 +16,65 @@ them incrementally to target volumes. It is able to perform backups
|
||||||
from one source to multiple destinations.
|
from one source to multiple destinations.
|
||||||
.PP
|
.PP
|
||||||
Snapshots as well as backup subvolume names are created in form:
|
Snapshots as well as backup subvolume names are created in form:
|
||||||
.IP
|
.PP
|
||||||
|
.RS 4
|
||||||
<source_name>.YYYYMMDD[_N]
|
<source_name>.YYYYMMDD[_N]
|
||||||
|
.RE
|
||||||
.PP
|
.PP
|
||||||
Where YYYY is the year, MM is the month, and DD is the day of
|
Where YYYY is the year, MM is the month, and DD is the day of
|
||||||
creation, and, if multiple backups are created on the same day, N will
|
creation, and, if multiple backups are created on the same day, N will
|
||||||
be incremented on each backup, starting at 1.
|
be incremented on each backup, starting at 1.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.PP
|
||||||
\-\-version
|
\-\-version
|
||||||
|
.RS 4
|
||||||
Prints the btrbk version.
|
Prints the btrbk version.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-h, \-\-help
|
\-h, \-\-help
|
||||||
|
.RS 4
|
||||||
Prints the synopsis and a list of the commands.
|
Prints the synopsis and a list of the commands.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-c, \-\-config <file>
|
\-c, \-\-config <file>
|
||||||
|
.RS 4
|
||||||
Read the configuration from <file>.
|
Read the configuration from <file>.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-p, \-\-preserve
|
\-p, \-\-preserve
|
||||||
|
.RS 4
|
||||||
Preserve all backups. Skips deletion of old backups, even if specified
|
Preserve all backups. Skips deletion of old backups, even if specified
|
||||||
in the configuration file.
|
in the configuration file.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-r, \-\-resume-only
|
\-r, \-\-resume-only
|
||||||
|
.RS 4
|
||||||
Resume only. Skips snapshot creation, only resumes missing
|
Resume only. Skips snapshot creation, only resumes missing
|
||||||
backups. This only makes sense if the \fIresume_missing\fR option is
|
backups. This only makes sense if the \fIresume_missing\fR option is
|
||||||
set to \[lq]yes\[rq] in the configuration file.
|
set to \[lq]yes\[rq] in the configuration file.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-v, \-\-verbose
|
\-v, \-\-verbose
|
||||||
|
.RS 4
|
||||||
Verbose output. Identical to: \-l info.
|
Verbose output. Identical to: \-l info.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-q, \-\-quiet
|
\-q, \-\-quiet
|
||||||
|
.RS 4
|
||||||
Quiet operation. If set, btrbk does not print the summary after
|
Quiet operation. If set, btrbk does not print the summary after
|
||||||
executing the "run" command.
|
executing the "run" command.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-l, \-\-loglevel <level>
|
\-l, \-\-loglevel <level>
|
||||||
|
.RS 4
|
||||||
Set the level of verbosity. Accepted levels are warn, info, debug,
|
Set the level of verbosity. Accepted levels are warn, info, debug,
|
||||||
and trace.
|
and trace.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\-\-progress
|
\-\-progress
|
||||||
|
.RS 4
|
||||||
Show progress bar on send-receive operation.
|
Show progress bar on send-receive operation.
|
||||||
|
.RE
|
||||||
.SH COMMANDS
|
.SH COMMANDS
|
||||||
.PP
|
.PP
|
||||||
.B run
|
.B run
|
||||||
|
@ -119,14 +145,15 @@ parent-child relationship as well as the received-from information.
|
||||||
Print new files since subvolume <from> for subvolume <to>.
|
Print new files since subvolume <from> for subvolume <to>.
|
||||||
.RE
|
.RE
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP
|
.PP
|
||||||
/etc/btrbk.conf
|
/etc/btrbk.conf
|
||||||
.PD 0
|
.br
|
||||||
.TP
|
|
||||||
/etc/btrbk/btrbk.conf
|
/etc/btrbk/btrbk.conf
|
||||||
|
.RS 4
|
||||||
Default configuration file. The file format and configuration options
|
Default configuration file. The file format and configuration options
|
||||||
are described in
|
are described in
|
||||||
.BR btrbk.conf (5).
|
.BR btrbk.conf (5).
|
||||||
|
.RE
|
||||||
.PD
|
.PD
|
||||||
.SH EXIT STATUS
|
.SH EXIT STATUS
|
||||||
.sp
|
.sp
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
.TH "btrbk.conf" "5" "2015-09-02" "btrbk v0.20.0" ""
|
.TH "btrbk.conf" "5" "2015-09-02" "btrbk v0.20.0" ""
|
||||||
|
.\" disable hyphenation
|
||||||
|
.nh
|
||||||
|
.\" disable justification (adjust text to left margin only)
|
||||||
|
.ad l
|
||||||
.SH NAME
|
.SH NAME
|
||||||
btrbk.conf \- btrbk configuration file
|
btrbk.conf \- btrbk configuration file
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -17,18 +21,23 @@ superseding the values set in upper-level sections. This means that
|
||||||
global options must be set before any sections are defined.
|
global options must be set before any sections are defined.
|
||||||
.PP
|
.PP
|
||||||
The sections are:
|
The sections are:
|
||||||
.TP
|
.PP
|
||||||
\fBvolume\fR <volume-directory>|<url>
|
\fBvolume\fR <volume-directory>|<url>
|
||||||
|
.RS 4
|
||||||
Directory of a btrfs volume containing the source subvolume(s) to be
|
Directory of a btrfs volume containing the source subvolume(s) to be
|
||||||
backed up. \fI<volume-directory>\fR must be an absolute path and point
|
backed up. \fI<volume-directory>\fR must be an absolute path and point
|
||||||
to a btrfs volume (or subvolume). Usually the mount point of a btrfs
|
to a btrfs volume (or subvolume). Usually the mount point of a btrfs
|
||||||
filesystem mounted with the \fIsubvolid=0\fR option.
|
filesystem mounted with the \fIsubvolid=0\fR option.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBsubvolume\fR <subvolume-name>
|
\fBsubvolume\fR <subvolume-name>
|
||||||
|
.RS 4
|
||||||
Subvolume to be backed up, relative to the \fI<volume-directory>\fR
|
Subvolume to be backed up, relative to the \fI<volume-directory>\fR
|
||||||
specified in the \fIvolume\fR section.
|
specified in the \fIvolume\fR section.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBtarget\fR <type> <volume-directory>|<url>
|
\fBtarget\fR <type> <volume-directory>|<url>
|
||||||
|
.RS 4
|
||||||
Target type and directory where the backup subvolumes are to be
|
Target type and directory where the backup subvolumes are to be
|
||||||
created. \fI<volume-directory>\fR must be an absolute path and point
|
created. \fI<volume-directory>\fR must be an absolute path and point
|
||||||
to a btrfs volume (or subvolume). Currently the the only valid
|
to a btrfs volume (or subvolume). Currently the the only valid
|
||||||
|
@ -36,26 +45,36 @@ to a btrfs volume (or subvolume). Currently the the only valid
|
||||||
.PP
|
.PP
|
||||||
For the \fIvolume\fR and \fItarget\fR sections, you can also specify a
|
For the \fIvolume\fR and \fItarget\fR sections, you can also specify a
|
||||||
ssh-url instead of a local directory. The syntax for \fI<url>\fR is:
|
ssh-url instead of a local directory. The syntax for \fI<url>\fR is:
|
||||||
.IP
|
.PP
|
||||||
|
.RS 4
|
||||||
|
.nf
|
||||||
ssh://host.xz/path/to/volume
|
ssh://host.xz/path/to/volume
|
||||||
|
.fi
|
||||||
|
.RE
|
||||||
.PP
|
.PP
|
||||||
Note that btrfs is very picky on file names (mainly for security
|
Note that btrfs is very picky on file names (mainly for security
|
||||||
reasons), only the characters [0-9] [a-z] [A-Z] and "._+-@" are
|
reasons), only the characters [0-9] [a-z] [A-Z] and "._+-@" are
|
||||||
allowed.
|
allowed.
|
||||||
|
.RE
|
||||||
.PP
|
.PP
|
||||||
The configuration options are:
|
The configuration options are:
|
||||||
.TP
|
.PP
|
||||||
\fBsnapshot_dir\fR <directory>
|
\fBsnapshot_dir\fR <directory>
|
||||||
|
.RS 4
|
||||||
Directory in which the btrfs snapshots are created, relative to
|
Directory in which the btrfs snapshots are created, relative to
|
||||||
\fI<volume-directory>\fR of the \fIvolume\fR section. Note that btrbk
|
\fI<volume-directory>\fR of the \fIvolume\fR section. Note that btrbk
|
||||||
does not autmatically create this directory, and the snapshot creation
|
does not autmatically create this directory, and the snapshot creation
|
||||||
will fail if it is not present.
|
will fail if it is not present.
|
||||||
.TP
|
.RE
|
||||||
\fBsnapshot_name\fR <basename> Base name of the created snapshot (and
|
.PP
|
||||||
backup). This option is only valid in the \fItarget\fR
|
\fBsnapshot_name\fR <basename>
|
||||||
section. Defaults to \fI<subvolume-name>\fR.
|
.RS 4
|
||||||
.TP
|
Base name of the created snapshot (and backup). This option is only
|
||||||
|
valid in the \fItarget\fR section. Defaults to \fI<subvolume-name>\fR.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
\fBsnapshot_create\fR always|ondemand|onchange|no
|
\fBsnapshot_create\fR always|ondemand|onchange|no
|
||||||
|
.RS 4
|
||||||
If set to \[lq]ondemand\[rq], snapshots are only created if the target
|
If set to \[lq]ondemand\[rq], snapshots are only created if the target
|
||||||
subvolume is reachable (useful if you are tight on disk space and you
|
subvolume is reachable (useful if you are tight on disk space and you
|
||||||
only need btrbk for backups to an external disk which is not always
|
only need btrbk for backups to an external disk which is not always
|
||||||
|
@ -67,74 +86,101 @@ created. If set to \[lq]no\[rq], the snapshots are never created
|
||||||
(useful in conjunction with the \fIresume_missing\fR option if another
|
(useful in conjunction with the \fIresume_missing\fR option if another
|
||||||
instance of btrbk is taking care of snapshot creation). Defaults to
|
instance of btrbk is taking care of snapshot creation). Defaults to
|
||||||
\[lq]always\[rq].
|
\[lq]always\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBincremental\fR yes|no|strict
|
\fBincremental\fR yes|no|strict
|
||||||
|
.RS 4
|
||||||
If set, incremental backups are created. If set to \[lq]strict\[rq],
|
If set, incremental backups are created. If set to \[lq]strict\[rq],
|
||||||
non-incremental (initial) backups are never created. Defaults to
|
non-incremental (initial) backups are never created. Defaults to
|
||||||
\[lq]yes\[rq].
|
\[lq]yes\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBresume_missing\fR yes|no
|
\fBresume_missing\fR yes|no
|
||||||
|
.RS 4
|
||||||
If set, the backups in the target directory are compared to the source
|
If set, the backups in the target directory are compared to the source
|
||||||
snapshots, and missing backups are created if needed (complying to the
|
snapshots, and missing backups are created if needed (complying to the
|
||||||
target preserve matrix). Defaults to \[lq]yes\[rq].
|
target preserve matrix). Defaults to \[lq]yes\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBtarget_preserve_daily\fR all|<number>
|
\fBtarget_preserve_daily\fR all|<number>
|
||||||
|
.RS 4
|
||||||
How many days of backups should be preserved. Defaults to \[lq]all\[rq].
|
How many days of backups should be preserved. Defaults to \[lq]all\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBtarget_preserve_weekly\fR all|<number>
|
\fBtarget_preserve_weekly\fR all|<number>
|
||||||
|
.RS 4
|
||||||
Defines for how many weeks back weekly backups should be
|
Defines for how many weeks back weekly backups should be
|
||||||
preserved. Every backup created at \fIpreserve_day_of_week\fR (or
|
preserved. Every backup created at \fIpreserve_day_of_week\fR (or
|
||||||
the next backup in this week if none was made on the exact day) is
|
the next backup in this week if none was made on the exact day) is
|
||||||
considered as a weekly backup. Defaults to \[lq]0\[rq].
|
considered as a weekly backup. Defaults to \[lq]0\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBtarget_preserve_monthly\fR all|<number>
|
\fBtarget_preserve_monthly\fR all|<number>
|
||||||
|
.RS 4
|
||||||
Defines for how many months back monthly backups should be
|
Defines for how many months back monthly backups should be
|
||||||
preserved. Every last weekly backup in a month is considered a
|
preserved. Every last weekly backup in a month is considered a
|
||||||
monthly backup. Defaults to \[lq]all\[rq].
|
monthly backup. Defaults to \[lq]all\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBsnapshot_preserve_daily\fR
|
\fBsnapshot_preserve_daily\fR
|
||||||
.PD 0
|
.PD 0
|
||||||
.TP
|
.PP
|
||||||
\fBsnapshot_preserve_weekly\fR
|
\fBsnapshot_preserve_weekly\fR
|
||||||
.TP
|
.PP
|
||||||
\fBsnapshot_preserve_monthly\fR
|
\fBsnapshot_preserve_monthly\fR
|
||||||
|
.RS 4
|
||||||
Defines retention policy for the snapshots, with same semantics as the
|
Defines retention policy for the snapshots, with same semantics as the
|
||||||
\fItarget_preserve_*\fR options.
|
\fItarget_preserve_*\fR options.
|
||||||
|
.RE
|
||||||
.PD
|
.PD
|
||||||
.TP
|
.PP
|
||||||
\fBpreserve_day_of_week\fR monday|tuesday|...|sunday
|
\fBpreserve_day_of_week\fR monday|tuesday|...|sunday
|
||||||
|
.RS 4
|
||||||
Defines on what day a backup/snapshot is considered as a weekly
|
Defines on what day a backup/snapshot is considered as a weekly
|
||||||
backup. Defaults to \[lq]sunday\[rq].
|
backup. Defaults to \[lq]sunday\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBssh_identity\fR <file>
|
\fBssh_identity\fR <file>
|
||||||
|
.RS 4
|
||||||
Absolute path to a ssh identity file (private key). Note that if the
|
Absolute path to a ssh identity file (private key). Note that if the
|
||||||
private key is password protected, btrbk will prompt for user input,
|
private key is password protected, btrbk will prompt for user input,
|
||||||
which is usually not desired.
|
which is usually not desired.
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBssh_user\fR <username>
|
\fBssh_user\fR <username>
|
||||||
|
.RS 4
|
||||||
Remote username for ssh. Defaults to \[lq]root\[rq]. Note that you will
|
Remote username for ssh. Defaults to \[lq]root\[rq]. Note that you will
|
||||||
have to make sure that the remote user is able to run /sbin/btrfs
|
have to make sure that the remote user is able to run /sbin/btrfs
|
||||||
(which needs root privileges).
|
(which needs root privileges).
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBssh_port\fR <port>
|
\fBssh_port\fR <port>
|
||||||
|
.RS 4
|
||||||
Port to connect to on the remote host. Defaults to \[lq]default\[rq]
|
Port to connect to on the remote host. Defaults to \[lq]default\[rq]
|
||||||
(the port specified in \fIssh_config\fR, which defaults to 22).
|
(the port specified in \fIssh_config\fR, which defaults to 22).
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBssh_compression\fR yes|no
|
\fBssh_compression\fR yes|no
|
||||||
|
.RS 4
|
||||||
Enables or disables the compression of ssh connections. Defaults to
|
Enables or disables the compression of ssh connections. Defaults to
|
||||||
\[lq]no\[rq].
|
\[lq]no\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBbtrfs_commit_delete\fR after|each|no
|
\fBbtrfs_commit_delete\fR after|each|no
|
||||||
|
.RS 4
|
||||||
If set, make sure the deletion of snapshot and backup subvolumes are
|
If set, make sure the deletion of snapshot and backup subvolumes are
|
||||||
committed to disk when btrbk terminates. Defaults to \[lq]no\[rq].
|
committed to disk when btrbk terminates. Defaults to \[lq]no\[rq].
|
||||||
.TP
|
.RE
|
||||||
|
.PP
|
||||||
\fBbtrfs_progs_compat\fR yes|no \fI*experimental*\fR
|
\fBbtrfs_progs_compat\fR yes|no \fI*experimental*\fR
|
||||||
|
.RS 4
|
||||||
Enable compatibility mode for btrfs-progs < 3.17 (\fIbtrfs
|
Enable compatibility mode for btrfs-progs < 3.17 (\fIbtrfs
|
||||||
--version\fR). This option can be set either globally or within a
|
--version\fR). This option can be set either globally or within a
|
||||||
\fItarget\fR section. If enabled, the latest common snapshots are
|
\fItarget\fR section. If enabled, the latest common snapshots are
|
||||||
determined by subvolume names instead of \fIreceived_uuid\fR, which
|
determined by subvolume names instead of \fIreceived_uuid\fR, which
|
||||||
can lead to false guesses if the snapshot or target subvolumes are
|
can lead to false guesses if the snapshot or target subvolumes are
|
||||||
manipulated by hand (moved, deleted).
|
manipulated by hand (moved, deleted).
|
||||||
|
.RE
|
||||||
.PP
|
.PP
|
||||||
Lines that contain a hash character (#) in the first column are
|
Lines that contain a hash character (#) in the first column are
|
||||||
treated as comments.
|
treated as comments.
|
||||||
|
|
Loading…
Reference in New Issue