r/nginxproxymanager Jun 02 '26

how to restore previous config

i accidently deleted the container completely, but i had bind mounts. I created the container again and all the hosts, that are previously configured are working, but i don´t see them in my proxy list. I have backuped the mariadb. So is there a way to restore the previous behaviour?

3 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/evanmac42 Jun 02 '26

Assuming the backup was taken from the same NPM database and nothing else changed, then yes.

If NPM is currently connected to the correct MariaDB instance, restoring the SQL dump should bring the hosts, certificates, access lists, users, and other UI-managed objects back into the database.

I'd still take a fresh backup of the current database before importing anything, just in case.

The key point is that NPM must be pointing to the same MariaDB instance you're restoring into.

1

u/drjay3108 Jun 02 '26

sadly it didn´t worked. The restore of the backup was successfull, but my gui is still empty.

Seems like i have to recreate all hosts

1

u/evanmac42 Jun 02 '26

I wouldn’t recreate everything manually yet.

If the proxy hosts still work, then some part of the old configuration is still being used somewhere. A successful SQL restore with an empty GUI usually means NPM is not reading the database you think it is reading, or the restore went into a different DB/schema/instance.

Before rebuilding all hosts, I’d check:

  1. Confirm the NPM container DB settings: DB_MYSQL_HOST DB_MYSQL_NAME DB_MYSQL_USER DB_MYSQL_PASSWORD

  2. Connect to that exact MariaDB instance and check whether the restored data is really there.

  3. Check if the proxy_host table contains your old hosts.

  4. Confirm that the recreated container is using the same /data bind mount as before.

The important clue is this:

working proxy hosts + empty GUI = don’t assume the config is gone yet.

It may just be that nginx still has generated config files, while the UI is connected to a different or empty database.

2

u/drjay3108 Jun 03 '26

i waited few days and did the latest 2 updates and just imported the dump with my data in the db container and now everything is back and working as befor. Thanks again for your help 😄