shorten mysql backup history to 7 days from 14 [ci skip]
This commit is contained in:
parent
7b9ff3e921
commit
3546284eee
1 changed files with 1 additions and 1 deletions
|
|
@ -875,7 +875,7 @@ resource "kubernetes_cron_job_v1" "postgresql-backup" {
|
||||||
|
|
||||||
# Rotate - delete last log file
|
# Rotate - delete last log file
|
||||||
cd /backup
|
cd /backup
|
||||||
find . -name "dump_*.sql" -type f -mtime +14 -delete # 14 day retention of backups
|
find . -name "dump_*.sql" -type f -mtime +7 -delete # 7 day retention of backups
|
||||||
EOT
|
EOT
|
||||||
]
|
]
|
||||||
volume_mount {
|
volume_mount {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue