mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-06-13 13:36:39 +02:00
Updated Updating (markdown)
parent
059cfc6fc1
commit
229068cd66
12
Updating.md
12
Updating.md
@ -68,9 +68,15 @@ docker-compose up -d postgres
|
||||
# Take a DB backup
|
||||
docker-compose exec -T postgres sh -c 'pg_dump -cU $POSTGRES_USER $POSTGRES_DB' | gzip > db_dump.sql.gz
|
||||
|
||||
# Stop the database and remove it's volme
|
||||
# THIS STEP WILL WIPE YOUR DATABASE!
|
||||
docker-compose rm -sfv postgres
|
||||
# Stop the database
|
||||
docker-compose down postgres
|
||||
|
||||
# Remove the database volume
|
||||
#
|
||||
# !!!
|
||||
# THIS STEP WILL REMOVE ALL DATA IN YOUR DATABASE
|
||||
# !!!
|
||||
docker volume rm netbox-docker_netbox-postgres-data
|
||||
|
||||
# Update NetBox Docker files and containers
|
||||
git checkout release && git pull -p origin release
|
||||
|
Loading…
x
Reference in New Issue
Block a user