feat(id.tjo.space): add restore backup script
This commit is contained in:
parent
2170a87e6b
commit
b44fb437b0
1 changed files with 9 additions and 0 deletions
|
@ -1,6 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Restoring PostgreSQL Database
|
||||
#
|
||||
# The backup file from pg_dump (with format=custom)
|
||||
# must be provided via stdin.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# cat /path/to/backup.sql | postgresql-backup-restore
|
||||
|
||||
echo "=== Reading Configuration"
|
||||
set -a && source /etc/postgresql/postgresql.env && set +a
|
||||
|
Loading…
Reference in a new issue