Retain at least "x" backups before deleting

I was about to purchase the software where I realized. The Auto Delete of Backups in based on dates rather than or including retaining the last “x” backup files instead. If a machine has a bad time stamp it could incur data loss, so keeping it based on the number of files in my opinion is better. I would write a script for that, but the native tool does not even allow me to disable “Auto Delete”.

I only want to delete old backups after there is at least “x” number of backups in the folder.

Example:
Retain 7 backups then delete old backups

1 Like

Hello,

Thanks for your feedback!

The good news is that this feature is planned for the new version of SqlBak, which is currently in development. It will allow exactly what you’re describing — keeping a specific number of recent backups regardless of timestamp.

Aside from that, unfortunately, the current version doesn’t support applying deletion logic based on file count.

Thanks again for the thoughtful suggestion!

Can you also please include the ability to disable auto delete as well?

Hi KimchiRice,

thanks for your message!

You can already achieve this by setting a very long period in the “Auto delete old backups after” option — for example, 999999 months.

This way backups will never be deleted automatically.

Could you please tell me the approximate timeframe for the availability of a setting to delete outdated backups based on the number of files, rather than the storage time?

Hello,

Thank you for your request.

The new version of SqlBak, which is currently in development, is planned to be available towards the end of this year. It will include the ability to keep a specific number of recent backups regardless of their timestamp.