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

simplify

parent 29b8b97c
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,6 @@ spec: ...@@ -41,7 +41,6 @@ spec:
- -c - -c
- >- - >-
find /mnt/persistent/ -mindepth 1 -mtime +10 -delete ; find /mnt/persistent/ -mindepth 1 -mtime +10 -delete ;
pg_dumpall -h {{ .Values.database.host }} --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 ;
pg_dumpall -h {{ .Values.database.host }} --clean --if-exists -U postgres -r -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").roles.dump ; pg_dumpall -h {{ .Values.database.host }} --clean --if-exists -U postgres -r -f /mnt/persistent/$(date +"%Y%m%d_%H%M%S").roles.dump ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment