mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2026-08-18 01:12:48 +01:00
migrate db back to postgres:14 and manually add wal-g automated incremental backups
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Configure postgres to archive WAL logs via wal-g
|
||||
echo "archive_mode = on" >> "$PGDATA/postgresql.conf"
|
||||
echo "archive_command = 'wal-g wal-push %p'" >> "$PGDATA/postgresql.conf"
|
||||
echo "archive_timeout = 60" >> "$PGDATA/postgresql.conf"
|
||||
Reference in New Issue
Block a user