documentation: btrbk.conf.5.asciidoc: enhance text on retention policy options

pull/219/head
Axel Burri 2018-04-04 21:01:54 +02:00
parent e4a0938712
commit e9c30e91fb
1 changed files with 16 additions and 7 deletions

View File

@ -153,14 +153,19 @@ Note that using ``long-iso'' has implications on the scheduling, see
=== Retention Policy Options === Retention Policy Options
*preserve_day_of_week* monday|tuesday|...|sunday:: *preserve_day_of_week* monday|tuesday|...|sunday::
Defines on what day a backup/snapshot is considered as a weekly Defines on what day a snapshot/backup is considered to be a
backup. Defaults to ``sunday''. "weekly" backup. Weekly, monthly and yearly backups are preserved
on this day of week (see <<_retention_policy,RETENTION POLICY>>
below). Defaults to ``sunday''.
*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
backup/snapshot is considered as a daily backup. If you set this snapshot/backup is considered to be a "daily" backup. Daily,
weekly, monthly and yearly backups are preserved on this hour (see
<<_retention_policy,RETENTION POLICY>> below). If you set this
option, make sure to also set 'timestamp_format' to ``long'' or option, make sure to also set 'timestamp_format' to ``long'' or
``long-iso''. Defaults to ``0''. ``long-iso'' (backups and snapshots having no time information
will ignore this option). Defaults to ``0''.
*snapshot_preserve* no|<retention_policy>:: *snapshot_preserve* no|<retention_policy>::
Set retention policy for snapshots (see Set retention policy for snapshots (see
@ -337,8 +342,8 @@ RETENTION POLICY
btrbk uses separate retention policies for snapshots and backups, btrbk uses separate retention policies for snapshots and backups,
which are defined by the 'snapshot_preserve_min', 'snapshot_preserve', which are defined by the 'snapshot_preserve_min', 'snapshot_preserve',
'target_preserve_min', 'target_preserve', and 'target_preserve_min', 'target_preserve', 'preserve_day_of_week' and
'preserve_day_of_week' configuration options. 'preserve_hour_of_day' configuration options.
Within this section, any statement about "backups" is always valid for Within this section, any statement about "backups" is always valid for
backups as well as snapshots, referring to 'target_preserve' or backups as well as snapshots, referring to 'target_preserve' or
@ -359,7 +364,8 @@ With the following semantics:
*daily*:: *daily*::
Defines how many days back daily backups should be preserved. The Defines how many days back daily backups should be preserved. The
first backup of a day is considered a daily backup. first backup of a day (starting at 'preserve_hour_of_day') is
considered a daily backup.
*weekly*:: *weekly*::
Defines how many weeks back weekly backups should be Defines how many weeks back weekly backups should be
@ -385,6 +391,9 @@ The reference time (which defines the beginning of a day, week, month
or year) for all date/time calculations is the local time of the host or year) for all date/time calculations is the local time of the host
running btrbk. running btrbk.
Hint: Run btrbk with the '--print-schedule' option to get a
comprehensive output of the scheduler results.
Caveats: Caveats:
* If you run a setup with several btrbk instances (e.g. one * If you run a setup with several btrbk instances (e.g. one