barman
barman copied to clipboard
Time Interval Parsing in last_backup_maximum_age
It would be nice if barman would accept hours and minutes via last_backup_maximum_age
. Currently we backup on Thursday at 12 AM. We can only set the last_backup_maximum_age
to 8 DAYS
which is 24 hours later then our last backup maximum age should be, plus we're still going to be getting Nagios alerts during sleep hours if using barman check --nagios
. It would be super nice if we could set 1 WEEKS, 11 HOURS
or even just 179 HOURS
for last_backup_maximum_age
.
Hi, I was looking into this for similar reasons as the ones explained by @hathvi, and noticed that parse_time_interval seems to already support using i HOURS
in addition to the documented DAYS|WEEKS|MONTHS
. It seems indeed to work for me (Barman 3.5.0).
I have not looked deeper into when or why this was introduced, but maybe someone more familiar with Barman development can comment? It would be nice if all that was left was updating the documentation!