Skip to content

Commit

Permalink
Keep intervalls: Allow 0
Browse files Browse the repository at this point in the history
without this change, people were forced to keep at least a monthly,
yearly, weekly... backup. This is not a borg requirement. We need to
allow 0 so people can keep backups for a shorter time period.
  • Loading branch information
bastelfreak committed Nov 27, 2020
1 parent 6e6eb55 commit 4e3f9e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,39 +61,39 @@ Default value: ``true``

##### `keep_yearly`

Data type: `Integer[1]`
Data type: `Integer[0]`

For how many years should we keep our backups?

Default value: `3`

##### `keep_monthly`

Data type: `Integer[1]`
Data type: `Integer[0]`

For how many months should we keep our backups?

Default value: `24`

##### `keep_weekly`

Data type: `Integer[1]`
Data type: `Integer[0]`

For how many weeks should we keep our backups?

Default value: `36`

##### `keep_daily`

Data type: `Integer[1]`
Data type: `Integer[0]`

For how many days should we keep our backups?

Default value: `60`

##### `keep_within`

Data type: `Integer[1]`
Data type: `Integer[0]`

For how many days should we keep all backups we have?

Expand Down
10 changes: 5 additions & 5 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@
Boolean $create_prometheus_metrics = true,
Boolean $use_upstream_reporter = false,
Boolean $update_borg_restore_db_after_backuprun = true,
Integer[1] $keep_yearly = 3,
Integer[1] $keep_monthly = 24,
Integer[1] $keep_weekly = 36,
Integer[1] $keep_daily = 60,
Integer[1] $keep_within = 30,
Integer[0] $keep_yearly = 3,
Integer[0] $keep_monthly = 24,
Integer[0] $keep_weekly = 36,
Integer[0] $keep_daily = 60,
Integer[0] $keep_within = 30,
Array[Stdlib::Absolutepath] $excludes = ['/tmp', '/sys', '/dev', '/proc', '/run', '/media', '/var/lib/nfs/rpc_pipefs'],
Array[Stdlib::Absolutepath] $includes = ['/', '/boot', '/boot/efi', '/boot/EFI', '/var/log'],
String[1] $backupdestdir = 'borg',
Expand Down

0 comments on commit 4e3f9e1

Please sign in to comment.