Browse Source

Added postgres db restore script

develop
mark-sch 2 years ago
parent
commit
946c4454d7
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      db_backup/restore-db.sh

+ 4
- 0
db_backup/restore-db.sh View File

@ -0,0 +1,4 @@
#!/bin/bash
MYDB=$1
zcat $MYDB.sql.gz | psql -h localhost -U gekkodbuser -d postgres

Loading…
Cancel
Save