mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-12-25 04:11:24 +00:00
Forgot to add a chown command for docker restore. (#192)
* Forgot to add a chown command for docker restore. * Add depending on system.
This commit is contained in:
parent
cfbd68c500
commit
fbc29da8b3
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@ docker-compose up -d postgres
|
|||
|
||||
# Restore from the .sql.gz backup
|
||||
gunzip < db_dump.sql | docker-compose exec -T postgres psql -U lemmy
|
||||
|
||||
# Note: You may need to change the permissions on the postgres directory, depending on your system.
|
||||
chown -R $USER volumes
|
||||
docker-compose restart postgres
|
||||
|
||||
# Continue with the startup
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
If you've accidentally already started the lemmy service, you need to clear out your existing database:
|
||||
|
|
Loading…
Reference in a new issue