mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-06-13 05:26:43 +02:00
Updated Troubleshooting (markdown)
parent
0ba96b8d69
commit
d507c9fc04
@ -38,7 +38,9 @@ docker-compose down -v --remove-orphans
|
|||||||
git reset --hard origin/release
|
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
|
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:
|
Restore that database:
|
||||||
|
|
||||||
```bash
|
```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'
|
gunzip -c db_dump.sql.gz | docker-compose exec -T postgres sh -c 'psql -U $POSTGRES_USER $POSTGRES_DB'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user