managed-dev-cc-00-aks managed-prod-cc-00-aks
For all of the Drupal Sites we manage the automated daily backups never had an expiration policy.
This is now corrected by adding the following cron rules to our Helm Charts for all of the sites we manage.
The policy allows for us to keep up to 6 months of backups (180 days) at which point they will be removed.
clean-backups:
# Run at 03:00AM UTC every day.
schedule: '00 03 * * *'
script: |
find /backup/ -mindepth 1 -maxdepth 1 -type d -mtime +180 -exec echo "rm -rf " {} \; 2>&1;
find /backup/ -mindepth 1 -maxdepth 1 -type d -mtime +180 -exec rm -rf {} \; 2>&1;
volumes:
- name: backup
azureFile:
secretName: rsams-storage
shareName: backup
volumeMounts:
- name: backup
mountPath: /backup
Last updated: October 17, 2022 at 6:08 PM UTC