feat(id.tjo.space): add restore backup script

This commit is contained in:
Tine 2025-03-10 21:59:21 +01:00
parent 2170a87e6b
commit b44fb437b0
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -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