Browse Source

Fix issue with repozo backup location for velero

master
Fábio Kaiser Rauber 3 years ago
parent
commit
045962725b
  1. 10
      charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml

10
charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml

@ -35,15 +35,17 @@ data:
import collective.recipe.backup.main
{{- $bkpLocation := .Values.velero.backup.enabled | ternary "/data" "/backup" -}}
if __name__ == '__main__':
sys.exit(collective.recipe.backup.main.backup_main(
bin_dir='/plone/instance/bin',
storages=[{'backup_location': '/backup/backups',
'blob_backup_location': '/backup/blobstoragebackups',
'blob_snapshot_location': '/backup/blobstoragesnapshots',
storages=[{'backup_location': '{{ $bkpLocation }}/backups',
'blob_backup_location': '{{ $bkpLocation }}/blobstoragebackups',
'blob_snapshot_location': '{{ $bkpLocation }}/blobstoragesnapshots',
'blobdir': '/data/blobstorage',
'datafs': '/data/filestorage/Data.fs',
'snapshot_location': '/backup/snapshotbackups',
'snapshot_location': '{{ $bkpLocation }}/snapshotbackups',
'storage': '1'}],
keep={{ .Values.repozo.keep }},
keep_blob_days={{ .Values.repozo.keepblobdays }},

Loading…
Cancel
Save