Replies: 1 comment
-
Hi, You just need to back up the netbox db from the baremetal and dump it into the docker instance. Retrieve the running PostgreSQL container IDCONTAINER_ID=$(docker ps | grep "postgres:17-alpine" | awk '{print $1}') Define variablesDB_NAME="netbox" Ensure we found a container IDif [ -z "$CONTAINER_ID" ]; then echo "Using container ID: $CONTAINER_ID" Create new database inside the containerecho "Creating database inside Docker container..." Decompress backup file outside the containerecho "Decompressing backup file..." Copying database into the containerecho "Copying database into the container" Restore backup inside the containerecho "Restoring database..." echo "Database restoration complete!" I hope this helps :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
currently I have Netbox up and running on a VM on my NAS.
But it is very slow and I have a server available with more power who offers Docker environment.
So I am thinking to migrate my "baremetal" installation to a Docker based Netbox. I guess this will be not a huge issue, right?
How do I restore my current configuratioj to the new docker image?
AND, even more important: How do I do a backup of the Netbox data from the docker instance?
(I knwo paperless-ngx and it has an exporter who simply writes all data to a drive on the host. I expected something like this on Docker Netbox- does it exist?
Thanks for ideas!
/KNEBb
Beta Was this translation helpful? Give feedback.
All reactions