Uncommented roles backup
This commit is contained in:
parent
e09e25459f
commit
e659cffbc4
4 changed files with 4 additions and 4 deletions
|
@ -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/'
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ function main() {
|
|||
|
||||
# Restore db
|
||||
drop-create-db
|
||||
#restore-roles
|
||||
restore-roles
|
||||
restore-db
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue