lemmy/scripts/restore_db.sh
2021-03-11 11:41:04 -05:00

6 lines
213 B
Bash
Executable File

#!/bin/bash
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
cat docker/dev/lemmy_dump_2021-01-29_16_13_40.sqldump | psql -U lemmy
psql -U lemmy -c "alter user lemmy with password 'password'"