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