diff --git a/imageroot/actions/restore-module/30restore_database b/imageroot/actions/restore-module/30restore_database index beddd2e..1ab9c9e 100755 --- a/imageroot/actions/restore-module/30restore_database +++ b/imageroot/actions/restore-module/30restore_database @@ -4,4 +4,4 @@ . ./db.env # Dump the DB from timescale -podman exec -i timescale pd_restore -d "${REPORT_DB_URI}" < backup.sql +podman exec -i timescale psql --dbname "${REPORT_DB_URI}" < backup.sql diff --git a/imageroot/bin/module-dump-state b/imageroot/bin/module-dump-state index 001ea7e..4e66f4a 100755 --- a/imageroot/bin/module-dump-state +++ b/imageroot/bin/module-dump-state @@ -6,4 +6,4 @@ set -e . ./db.env # Dump the DB from timescale -podman exec -i timescale pg_dump -d "${REPORT_DB_URI}" > backup.sql +podman exec -i timescale pg_dump --dbname "${REPORT_DB_URI}" --data-only > backup.sql