mirror of https://github.com/digint/btrbk
documentation: added "FILTER STATEMENT" section in btrbk(1), and "group" configuration option in btrbk.conf(5)
parent
d64aea9cc9
commit
269b3611ac
8
btrbk
8
btrbk
|
@ -147,10 +147,10 @@ sub HELP_MESSAGE
|
||||||
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 [subvol|group...] 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 [subvol|group...] 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 [subvol|group...] shows backup tree\n";
|
print STDERR " tree [filter...] shows backup tree\n";
|
||||||
print STDERR " info [subvol|group...] 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";
|
||||||
print STDERR "\n";
|
print STDERR "\n";
|
||||||
|
|
48
doc/btrbk.1
48
doc/btrbk.1
|
@ -81,13 +81,12 @@ Show progress bar on send-receive operation.
|
||||||
.SH COMMANDS
|
.SH COMMANDS
|
||||||
.PP
|
.PP
|
||||||
.B run
|
.B run
|
||||||
[subvolume...]
|
[filter...]
|
||||||
.RS 4
|
.RS 4
|
||||||
Perform backup operations as specified in the configuration file. If
|
Perform backup operations as specified in the configuration file. If
|
||||||
the optional [subvolume...] arguments are present, backups are only
|
the optional [filter...] arguments are present, backups are only
|
||||||
performed for the specified subvolumes (which must match a
|
performed for the subvolumes/targets matching a \fIFILTER STATEMENT\fR
|
||||||
volume/subvolume declaration in the configuration file), and the -p
|
(see below).
|
||||||
(preserve backups) option is implied.
|
|
||||||
.PP
|
.PP
|
||||||
First, btrbk reads information from the source and target btrfs
|
First, btrbk reads information from the source and target btrfs
|
||||||
filesystems in order to perform sanity checks and identify
|
filesystems in order to perform sanity checks and identify
|
||||||
|
@ -113,7 +112,7 @@ of the retention policy.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.B dryrun
|
.B dryrun
|
||||||
[subvolume...]
|
[filter...]
|
||||||
.RS 4
|
.RS 4
|
||||||
Don't run btrfs commands, just show the snapshots and backup
|
Don't run btrfs commands, just show the snapshots and backup
|
||||||
subvolumes that would be created/deleted by the \fBrun\fR command. Use
|
subvolumes that would be created/deleted by the \fBrun\fR command. Use
|
||||||
|
@ -122,17 +121,19 @@ would be executed.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.B info
|
.B info
|
||||||
[subvolume...]
|
[filter...]
|
||||||
.RS 4
|
.RS 4
|
||||||
Print filesystem usage information for all source/target
|
Print filesystem usage information for all source/target
|
||||||
volumes. Optionally filtered by [subvolume...] arguments.
|
volumes. Optionally filtered by [filter...] arguments (see \fIFILTER
|
||||||
|
STATEMENTS\fR below).
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.B tree
|
.B tree
|
||||||
[subvolume...]
|
[filter...]
|
||||||
.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 [subvolume...] arguments.
|
tree. Optionally filtered by [filter...] arguments (see \fIFILTER
|
||||||
|
STATEMENTS\fR below).
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.B origin
|
.B origin
|
||||||
|
@ -147,6 +148,33 @@ parent-child relationship as well as the received-from information.
|
||||||
.RS 4
|
.RS 4
|
||||||
Print new files since subvolume <from> for subvolume <to>.
|
Print new files since subvolume <from> for subvolume <to>.
|
||||||
.RE
|
.RE
|
||||||
|
.SH FILTER STATEMENTS
|
||||||
|
Filter arguments are accepted in form:
|
||||||
|
.PP
|
||||||
|
[hostname:]<volume-directory>
|
||||||
|
.RS 4
|
||||||
|
Matches all subvolumes and targets of a \fIvolume\fR configuration section.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
[hostname:]<volume-directory>/<subvolume-name>
|
||||||
|
.RS 4
|
||||||
|
Matches the specified subvolume and all targets of a \fIsubvolume\fR
|
||||||
|
configuration section.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
[hostname:]<target-directory>
|
||||||
|
.RS 4
|
||||||
|
Matches a single target of a \fItarget\fR configuration section.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
<group-name>
|
||||||
|
.RS 4
|
||||||
|
Matches the \fIgroup\fR configuration option of a \fIvolume\fR,
|
||||||
|
\fIsubvolume\fR or \fItarget\fR section.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
For convenience, [hostname:] can be specified as either "hostname:",
|
||||||
|
"{hostname}" or "ssh://hostname/".
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.PP
|
.PP
|
||||||
/etc/btrbk.conf
|
/etc/btrbk.conf
|
||||||
|
|
|
@ -140,6 +140,13 @@ Defines on what day a backup/snapshot is considered as a weekly
|
||||||
backup. Defaults to \[lq]sunday\[rq].
|
backup. Defaults to \[lq]sunday\[rq].
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
|
\fBgroup\fR <group-name>[,<group-name>]...
|
||||||
|
.RS 4
|
||||||
|
Add the current section (volume, subvolume or target) to a
|
||||||
|
user-defined group, which can be used as filter for several btrbk
|
||||||
|
commands.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
\fBssh_identity\fR <file>
|
\fBssh_identity\fR <file>
|
||||||
.RS 4
|
.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
|
||||||
|
|
Loading…
Reference in New Issue