Uncommented roles backup

This commit is contained in:
Clemens Geibel 2021-07-16 16:47:52 +02:00
parent e09e25459f
commit e659cffbc4
4 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ function main() {
file_env POSTGRES_USER file_env POSTGRES_USER
file_env RESTIC_DAYS_TO_KEEP 14 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-db-dump
backup-fs-from-directory '/var/backups/' 'data/' backup-fs-from-directory '/var/backups/' 'data/'
} }

View file

@ -4,7 +4,7 @@ function main() {
file_env AWS_ACCESS_KEY_ID file_env AWS_ACCESS_KEY_ID
file_env AWS_SECRET_ACCESS_KEY file_env AWS_SECRET_ACCESS_KEY
#init-role-repo init-role-repo
init-database-repo init-database-repo
init-file-repo init-file-repo
} }

View file

@ -6,7 +6,7 @@ function main() {
file_env AWS_ACCESS_KEY_ID file_env AWS_ACCESS_KEY_ID
file_env AWS_SECRET_ACCESS_KEY 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}/pg-database snapshots
restic -r ${RESTIC_REPOSITORY}/files snapshots restic -r ${RESTIC_REPOSITORY}/files snapshots
} }

View file

@ -21,7 +21,7 @@ function main() {
# Restore db # Restore db
drop-create-db drop-create-db
#restore-roles restore-roles
restore-db restore-db
} }