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:
if [ -n "$KEY_FILE" ]; then
gcloud auth activate-service-account --key-file $KEY_FILE
fi
gsutil -m cp -r "$SRC_URL" "$DST_URL"
gsutil -m cp -r /backup/* "$DST_URL"
volumeMounts:
- name: backup
mountPath: /backup
......@@ -63,8 +63,6 @@ spec:
mountPath: /var/secrets/google/
{{- end }}
env:
- name: SRC_URL
value: /backup
- name: DST_URL
value: {{ .Values.backup.gcs.destination}}
{{- 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