datatracker/docker/scripts/db-pg-import.sh
2023-02-02 13:19:37 -06:00

12 lines
277 B
Bash

#!/bin/bash
set -e
echo "Drop dummy ietf DB if it exists..."
dropdb -U django --if-exists ietf
# Extensions and search paths will be loaded from the dump
echo "Import DB dump into ietf..."
pg_restore --clean --if-exists --create -U django -d postgres ietf.dump
echo "Done!"