mirror of https://github.com/digint/btrbk
btrbk: default to start weeks on mondays
Changed the default of the `preserve_day_of_week`-option to `monday` in accordance with the start of an ISO 8601 week as well as the meaning of `weekly` systemd. Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>pull/510/head
parent
fa7ef1bf63
commit
d024896930
|
@ -1,3 +1,8 @@
|
||||||
|
btrbk-current
|
||||||
|
* Changed the default of "preserve_day_of_week" to "monday" in
|
||||||
|
accordance with the start of an ISO 8601 week as well as the
|
||||||
|
meaning of "weekly" in systemd.
|
||||||
|
|
||||||
btrbk-0.32.5
|
btrbk-0.32.5
|
||||||
|
|
||||||
* Correct handling of zero-size raw info file (close #491).
|
* Correct handling of zero-size raw info file (close #491).
|
||||||
|
|
2
btrbk
2
btrbk
|
@ -90,7 +90,7 @@ my %config_options = (
|
||||||
incremental_prefs => { default => \@incremental_prefs_default, accept => [ qr/$incremental_prefs_match/ ], split => 1 },
|
incremental_prefs => { default => \@incremental_prefs_default, accept => [ qr/$incremental_prefs_match/ ], split => 1 },
|
||||||
incremental_clones => { default => "yes", accept => [qw( yes no )] },
|
incremental_clones => { default => "yes", accept => [qw( yes no )] },
|
||||||
incremental_resolve => { default => "mountpoint", accept => [qw( mountpoint directory _all_accessible )] },
|
incremental_resolve => { default => "mountpoint", accept => [qw( mountpoint directory _all_accessible )] },
|
||||||
preserve_day_of_week => { default => "sunday", accept => [ (keys %day_of_week_map) ] },
|
preserve_day_of_week => { default => "monday", accept => [ (keys %day_of_week_map) ] },
|
||||||
preserve_hour_of_day => { default => 0, accept => [ (0..23) ] },
|
preserve_hour_of_day => { default => 0, accept => [ (0..23) ] },
|
||||||
snapshot_preserve => { default => undef, accept => [qw( no )], accept_preserve_matrix => 1, context => [qw( global volume subvolume )], },
|
snapshot_preserve => { default => undef, accept => [qw( no )], accept_preserve_matrix => 1, context => [qw( global volume subvolume )], },
|
||||||
snapshot_preserve_min => { default => "all", accept => [qw( all latest ), qr/[1-9][0-9]*[hdwmy]/ ], context => [qw( global volume subvolume )], },
|
snapshot_preserve_min => { default => "all", accept => [qw( all latest ), qr/[1-9][0-9]*[hdwmy]/ ], context => [qw( global volume subvolume )], },
|
||||||
|
|
|
@ -56,7 +56,7 @@ snapshot_dir _btrbk_snap
|
||||||
|
|
||||||
# Specify on which day of week weekly/monthly backups are to be
|
# Specify on which day of week weekly/monthly backups are to be
|
||||||
# preserved.
|
# preserved.
|
||||||
#preserve_day_of_week sunday
|
#preserve_day_of_week monday
|
||||||
|
|
||||||
# Preserve all snapshots for a minimum period of time.
|
# Preserve all snapshots for a minimum period of time.
|
||||||
#snapshot_preserve_min 1d
|
#snapshot_preserve_min 1d
|
||||||
|
|
|
@ -179,7 +179,7 @@ not be certain about this, such operations are disallowed in
|
||||||
Defines on what day a snapshot/backup is considered to be a
|
Defines on what day a snapshot/backup is considered to be a
|
||||||
"weekly" backup. Weekly, monthly and yearly backups are preserved
|
"weekly" backup. Weekly, monthly and yearly backups are preserved
|
||||||
on this day of week (see <<_retention_policy,RETENTION POLICY>>
|
on this day of week (see <<_retention_policy,RETENTION POLICY>>
|
||||||
below). Defaults to ``sunday''.
|
below). Defaults to ``monday''.
|
||||||
|
|
||||||
*preserve_hour_of_day* [0..23]::
|
*preserve_hour_of_day* [0..23]::
|
||||||
Defines after what time (in full hours since midnight) a
|
Defines after what time (in full hours since midnight) a
|
||||||
|
|
Loading…
Reference in New Issue