mirror of https://github.com/digint/btrbk
btrbk: bugfix: accept "no" for "transaction_log", "transaction_syslog" and "lockfile" configuration options
parent
315b3f24a1
commit
b2cc99b0fb
|
@ -1,6 +1,8 @@
|
||||||
btrbk-current
|
btrbk-current
|
||||||
|
|
||||||
* Add "stream_buffer" configuration option (close #154).
|
* Add "stream_buffer" configuration option (close #154).
|
||||||
|
* Bugfix: accept "no" for "transaction_log", "transaction_syslog"
|
||||||
|
and "lockfile" configuration options.
|
||||||
|
|
||||||
btrbk-0.25.0
|
btrbk-0.25.0
|
||||||
|
|
||||||
|
|
6
btrbk
6
btrbk
|
@ -107,9 +107,9 @@ my %config_options = (
|
||||||
ssh_cipher_spec => { default => "default", accept_regexp => qr/^$ssh_cipher_match(,$ssh_cipher_match)*$/ },
|
ssh_cipher_spec => { default => "default", accept_regexp => qr/^$ssh_cipher_match(,$ssh_cipher_match)*$/ },
|
||||||
rate_limit => { default => undef, accept => [ "no" ], accept_regexp => qr/^[0-9]+[kmgtKMGT]?$/, require_bin => 'pv' },
|
rate_limit => { default => undef, accept => [ "no" ], accept_regexp => qr/^[0-9]+[kmgtKMGT]?$/, require_bin => 'pv' },
|
||||||
stream_buffer => { default => undef, accept => [ "no" ], accept_regexp => qr/^[0-9]+[kmgKMG%]?$/ }, # NOTE: requires 'mbuffer' command on target
|
stream_buffer => { default => undef, accept => [ "no" ], accept_regexp => qr/^[0-9]+[kmgKMG%]?$/ }, # NOTE: requires 'mbuffer' command on target
|
||||||
transaction_log => { default => undef, accept_file => { absolute => 1 } },
|
transaction_log => { default => undef, accept => [ "no" ], accept_file => { absolute => 1 } },
|
||||||
transaction_syslog => { default => undef, accept => \@syslog_facilities },
|
transaction_syslog => { default => undef, accept => [ "no", @syslog_facilities ] },
|
||||||
lockfile => { default => undef, accept_file => { absolute => 1 }, context => [ "root" ] },
|
lockfile => { default => undef, accept => [ "no" ], accept_file => { absolute => 1 }, context => [ "root" ] },
|
||||||
|
|
||||||
stream_compress => { default => undef, accept => [ "no", (keys %compression) ] },
|
stream_compress => { default => undef, accept => [ "no", (keys %compression) ] },
|
||||||
stream_compress_level => { default => "default", accept => [ "default" ], accept_numeric => 1 },
|
stream_compress_level => { default => "default", accept => [ "default" ], accept_numeric => 1 },
|
||||||
|
|
|
@ -72,7 +72,7 @@ allowed.
|
||||||
.RE
|
.RE
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.PP
|
.PP
|
||||||
\fBtransaction_log\fR <file>
|
\fBtransaction_log\fR <file>|no
|
||||||
.RS 4
|
.RS 4
|
||||||
If set, all transactions (snapshot create, subvolume send\-receive,
|
If set, all transactions (snapshot create, subvolume send\-receive,
|
||||||
subvolume delete) as well as abort messages are logged to <file>, in a
|
subvolume delete) as well as abort messages are logged to <file>, in a
|
||||||
|
@ -80,7 +80,7 @@ space-separated table format: "localtime type status duration
|
||||||
target_url source_url parent_url message".
|
target_url source_url parent_url message".
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\fBtransaction_syslog\fR <facility>
|
\fBtransaction_syslog\fR <facility>|no
|
||||||
.RS 4
|
.RS 4
|
||||||
If set, all transactions (as described in \fItransaction_log\fR above)
|
If set, all transactions (as described in \fItransaction_log\fR above)
|
||||||
are logged to syslog. The program name used in the messages is
|
are logged to syslog. The program name used in the messages is
|
||||||
|
@ -282,7 +282,7 @@ for remote sources, make sure that the "pv" command is available on
|
||||||
the source host.
|
the source host.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\fBlockfile\fR <file>
|
\fBlockfile\fR <file>|no
|
||||||
.RS 4
|
.RS 4
|
||||||
Create lockfile <file> on startup; checks lockfile before running any
|
Create lockfile <file> on startup; checks lockfile before running any
|
||||||
btrfs commands (using perl "flock"), and exits if the lock is held by
|
btrfs commands (using perl "flock"), and exits if the lock is held by
|
||||||
|
|
Loading…
Reference in New Issue