lemmy/scripts/restore_db.sh

6 lines
217 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2021-03-10 17:33:55 -05:00
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
cat docker/lemmy_dump_2021-01-29_16_13_40.sqldump | psql -U lemmy
2021-03-10 17:33:55 -05:00
psql -U lemmy -c "alter user lemmy with password 'password'"