mirror of
https://github.com/hanzodao/api.git
synced 2026-10-30 20:01:09 +00:00
* feat(dev): global gitignore, add database folder and backup, create database backup and restore scripts, rename other scripts for clarity, update docs * docs(readme): clarify setup, update db.sql with latest
11 lines
203 B
Bash
11 lines
203 B
Bash
#! /bin/bash
|
|
# Restore the database from the backup file to local database
|
|
|
|
BACKUP_FILE="$(dirname "$0")/../../../database/db.sql"
|
|
|
|
psql \
|
|
-X \
|
|
-d decent \
|
|
-f "$BACKUP_FILE" \
|
|
-v ON_ERROR_STOP=1
|