Updated Troubleshooting (markdown)

Christian Mäder 2021-03-02 10:26:44 +01:00
parent 0ba96b8d69
commit d507c9fc04

@ -38,7 +38,9 @@ docker-compose down -v --remove-orphans
git reset --hard origin/release
````
Enter the Netbox shell, e.g. to get access to `./manage.py`:
### Bash
Start the Netbox Container shell, e.g. to get access to `./manage.py` or look for files:
```
docker-compose exec netbox /bin/bash
@ -61,6 +63,10 @@ docker-compose exec -T postgres sh -c 'pg_dump -cU $POSTGRES_USER $POSTGRES_DB'
Restore that database:
```bash
# Stop all NetBox instances that access the db
docker-compose stop netbox netbox-worker
# Restore the DB dump
gunzip -c db_dump.sql.gz | docker-compose exec -T postgres sh -c 'psql -U $POSTGRES_USER $POSTGRES_DB'
```