Skip to content
Snippets Groups Projects
Commit 99cd7781 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

remove backups older than 10 days

parent 5458be6d
Branches
Tags
No related merge requests found
...@@ -40,6 +40,7 @@ spec: ...@@ -40,6 +40,7 @@ spec:
args: args:
- -c - -c
- >- - >-
find /mnt/persistent/ -mindepth 1 -mtime +10 -delete ;
pg_dumpall -h {{ .Values.database.host }} --clean --if-exists -U postgres -a -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").all.dump ; pg_dumpall -h {{ .Values.database.host }} --clean --if-exists -U postgres -a -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").all.dump ;
pg_dumpall -h {{ .Values.database.host }} -U postgres -a -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").data.dump ; pg_dumpall -h {{ .Values.database.host }} -U postgres -a -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").data.dump ;
pg_dumpall -h {{ .Values.database.host }} --clean --if-exists -U postgres -s -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").schema.dump ; pg_dumpall -h {{ .Values.database.host }} --clean --if-exists -U postgres -s -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").schema.dump ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment