File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 8
8
- when : apb_action == 'update'
9
9
block :
10
10
- name : Backup database
11
- shell : kubectl exec -it -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "mkdir -p /tmp/db && pg_dumpall -f /tmp/db/dump"
11
+ shell : kubectl exec -i -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "mkdir -p /tmp/db && pg_dumpall -f /tmp/db/dump"
12
12
13
13
- name : Rsync to APB
14
14
shell : oc rsync -n {{ namespace }} {{ app_pod_name }}:/tmp/db /tmp
56
56
shell : oc rsync -n {{ namespace }} /tmp/db {{ app_pod_name }}:/tmp
57
57
58
58
- name : Restore database
59
- shell : oc exec -it -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "psql -f /tmp/db/dump"
59
+ shell : kubectl exec -i -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "psql -f /tmp/db/dump"
60
60
61
61
- name : encode bind credentials
62
62
asb_encode_binding :
You can’t perform that action at this time.
0 commit comments