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 }