From e659cffbc4f6332f9847118a8feb79440fd8ce07 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 16 Jul 2021 16:47:52 +0200 Subject: [PATCH] Uncommented roles backup --- infrastructure/docker-backup/image/resources/backup.sh | 2 +- infrastructure/docker-backup/image/resources/init.sh | 2 +- .../docker-backup/image/resources/restic-snapshots.sh | 2 +- infrastructure/docker-backup/image/resources/restore.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/docker-backup/image/resources/backup.sh b/infrastructure/docker-backup/image/resources/backup.sh index cf804ae..d01affd 100755 --- a/infrastructure/docker-backup/image/resources/backup.sh +++ b/infrastructure/docker-backup/image/resources/backup.sh @@ -10,7 +10,7 @@ function main() { file_env POSTGRES_USER file_env RESTIC_DAYS_TO_KEEP 14 - #backup-roles 'oc_' TODO: lookup for jira roles (Also in init.sh & restore.sh) + backup-roles "" backup-db-dump backup-fs-from-directory '/var/backups/' 'data/' } diff --git a/infrastructure/docker-backup/image/resources/init.sh b/infrastructure/docker-backup/image/resources/init.sh index 9edd480..5693dcb 100755 --- a/infrastructure/docker-backup/image/resources/init.sh +++ b/infrastructure/docker-backup/image/resources/init.sh @@ -4,7 +4,7 @@ function main() { file_env AWS_ACCESS_KEY_ID file_env AWS_SECRET_ACCESS_KEY - #init-role-repo + init-role-repo init-database-repo init-file-repo } diff --git a/infrastructure/docker-backup/image/resources/restic-snapshots.sh b/infrastructure/docker-backup/image/resources/restic-snapshots.sh index cd1651a..a428fe2 100755 --- a/infrastructure/docker-backup/image/resources/restic-snapshots.sh +++ b/infrastructure/docker-backup/image/resources/restic-snapshots.sh @@ -6,7 +6,7 @@ function main() { file_env AWS_ACCESS_KEY_ID file_env AWS_SECRET_ACCESS_KEY - #restic -r ${RESTIC_REPOSITORY}/pg-role snapshots + restic -r ${RESTIC_REPOSITORY}/pg-role snapshots restic -r ${RESTIC_REPOSITORY}/pg-database snapshots restic -r ${RESTIC_REPOSITORY}/files snapshots } diff --git a/infrastructure/docker-backup/image/resources/restore.sh b/infrastructure/docker-backup/image/resources/restore.sh index f19f3ab..ac9b5f7 100755 --- a/infrastructure/docker-backup/image/resources/restore.sh +++ b/infrastructure/docker-backup/image/resources/restore.sh @@ -21,7 +21,7 @@ function main() { # Restore db drop-create-db - #restore-roles + restore-roles restore-db }