Unverified Commit 1f04f01c authored by Naseem's avatar Naseem

Copy timestamped folder within the backup volume, directly into cloud storage

By copying /backup/* we are copying all contents, in this case the timestamped backup folder, without the prepending /backup
parent 3265b97d
...@@ -54,7 +54,7 @@ spec: ...@@ -54,7 +54,7 @@ spec:
if [ -n "$KEY_FILE" ]; then if [ -n "$KEY_FILE" ]; then
gcloud auth activate-service-account --key-file $KEY_FILE gcloud auth activate-service-account --key-file $KEY_FILE
fi fi
gsutil -m cp -r "$SRC_URL" "$DST_URL" gsutil -m cp -r /backup/* "$DST_URL"
volumeMounts: volumeMounts:
- name: backup - name: backup
mountPath: /backup mountPath: /backup
...@@ -63,8 +63,6 @@ spec: ...@@ -63,8 +63,6 @@ spec:
mountPath: /var/secrets/google/ mountPath: /var/secrets/google/
{{- end }} {{- end }}
env: env:
- name: SRC_URL
value: /backup
- name: DST_URL - name: DST_URL
value: {{ .Values.backup.gcs.destination}} value: {{ .Values.backup.gcs.destination}}
{{- if .Values.backup.gcs.serviceAccountSecretKey}} {{- if .Values.backup.gcs.serviceAccountSecretKey}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment