Skip to content

Commit

Permalink
fix: dumping only data and restoring using psql
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile authored and gsanchietti committed Sep 12, 2024
1 parent 1190f9d commit b773403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imageroot/actions/restore-module/30restore_database
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion imageroot/bin/module-dump-state
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b773403

Please sign in to comment.