Skip to content
Snippets Groups Projects
Commit 8272e549 authored by Christopher Gervais's avatar Christopher Gervais
Browse files

Be more generous with backup retention.

parent ae49b15f
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ tag =
keep_last =
# For the last n hours/days/weeks/months/years in which a snapshot was made, keep only the last snapshot for each hour/day/week/month/year.
# Default is to keep 7 daily backups (when "retention = yes", above).
# When "retention = yes", above, default is to keep the last 7 backups, and 2 each for daily, weekly, monthly and yearly backups.
keep_hourly =
keep_daily =
keep_weekly =
......
......@@ -99,10 +99,10 @@ if [[ "$retention" == "yes" ]]; then
getconf keep_last "7"
getconf keep_hourly
getconf keep_daily
getconf keep_weekly
getconf keep_monthly
getconf keep_yearly
getconf keep_daily "2"
getconf keep_weekly "2"
getconf keep_monthly "2"
getconf keep_yearly "2"
getconf keep_tag
debug "restic is configured with the following retention policy:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment