support for snapshots recovery

This commit is contained in:
tomg10
2024-03-21 16:01:41 +01:00
parent 97a71926d7
commit 281068a752
4 changed files with 21 additions and 2 deletions

View File

@ -3,7 +3,7 @@ set -e
{% if force_pg_restore %}
pg_restore --clean --exit-on-error -j $(nproc --all) -d postgres -U $POSTGRES_USER --no-owner --no-privileges --disable-triggers --create /pg_backups/external_node_latest.pgdump
{% else %}
{% elif not enable_snapshots_recovery %}
if psql -U $POSTGRES_USER -d postgres -lqt | cut -d \| -f 1 | grep -qw "{{ database_name }}"; then
echo "Database already exists"
else