Skip to content

Commit

Permalink
adds script to dump and retore db
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Jul 10, 2024
1 parent 95ade2d commit dec8f92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ myenv
venv
*.secret
staticfiles/
histogis_dump.sql
4 changes: 4 additions & 0 deletions dump_and_restore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

pg_dump -d histogis -h localhost -p 5433 -U histogis -c -f histogis_dump.sql
psql -U postgres -d histogis < histogis_dump.sql

0 comments on commit dec8f92

Please sign in to comment.