mirror of
https://github.com/luxdao/api.git
synced 2026-10-30 19:53:52 +00:00
11 lines
200 B
Bash
11 lines
200 B
Bash
#! /bin/bash
|
|
# Restore the database from the backup file to local database
|
|
|
|
BACKUP_FILE="$(dirname "$0")/../../../database/db.sql"
|
|
|
|
psql \
|
|
-X \
|
|
-d dao \
|
|
-f "$BACKUP_FILE" \
|
|
-v ON_ERROR_STOP=1
|