Backup Retention
Backups will be automatically removed by the backup script if they meet one of the following
criteria:
- Older than 30 days. The 30-day default can be changed with the
-Retain
backup script parameter, using-Retain 0
to ignore backup age,-Retain 5
for 5 days, and-Retain 10:00
for 10 hours of retention. - Exceeds maximum backup count. By default, a maximum of 10 backups will be stored at
a time. This can be configured with the
-MaximumBackups
backup script parameter.
For more advanced usages of the backup script, such as setting the names of your Tomcat and DB containers if they are not the default, see the help info via the following command run from the srm-docker directory:
pwsh -Command get-help .\scripts\backup.ps1 -full