02.04. Syntax for retention_policy

 

   <<< Back   Next >>>
The general syntax for a base backup retention policy through retention_policy is the following:
retention_policy = {REDUNDANCY value | RECOVERY WINDOW OF value {DAYS | WEEKS | MONTHS}}

Where:
• syntax is case insensitive
• value is an integer and is > 0
• in case of redundancy retention policy: - value must be greater than or equal to the server
minimum redundancy level (if that value is not assigned, a warning is generated) - the first valid
backup is the value-th backup in a reverse ordered time series
• in case of recovery window policy: - the point of recoverability is: current time - window - the first
valid backup is the first available backup before the point of recoverability; its value in a reverse
ordered time series must be greater than or equal to the server minimum redundancy level (if it is
not assigned to that value and a warning is generated)

By default, retention_policy is empty (no retention enforced).


Example:
[barman@barman-bcp]$ cat /etc/barman.d/pg.conf


   <<< Back   Next >>>

No comments:

Post a Comment