How does remove_older_backups interact with maximum_backups?

@pfaffman the remove older backups was requested by a customer that, for regulatory reasons, couldn’t retain customer data older than a certain number of days. if its not set, it wont be in effect.

in the case of your customer, the DISCOURSE_MAXIMUM_BACKUPS value is read when a new backup is created (ie there’s no nightly script to delete them). it’s possible the customer lowered the value then didnt perform another backup after that point? Is it possible to perform an ad hoc backup and see if that deletes the older backups?