mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #90] [Feature Request] Export Settings #81
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @danmed on GitHub (Mar 1, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/90
I have this up and running finally using the mariadb as part of the stack, but i'd like to move it to my external MySQL server.. Unfortunately that means (as far as i can tell) i'm going to have to add all my hosts again... (i think).
Is there any way to export the current config, rebuild the docker, and import it again once it's pointing at MySQL instead?
@jc21 commented on GitHub (Mar 3, 2019):
EDIT: See https://github.com/jc21/nginx-proxy-manager/discussions/1529 for information about how to export / import / migrate data from your npm instances.
Sure I can see how an export feature might be useful. For now though, you only need to keep your config file,
datafolder,letsencryptfolder and dump your sql.You can export your database with a script like this:
For the rest of the data I guess it depends on how you're running the docker environment.
@MartinKuhl commented on GitHub (May 8, 2020):
when I try to import the exported data on a new created docker image, all information are back. I can see all the configuration within the UI. But it isn't working. I have to edit each proxy configuration and save it (without modification) and now it works. Is there any script for reinitializing the configuration?
@danmed commented on GitHub (May 9, 2020):
Did you reimport the database?
@MartinKuhl commented on GitHub (May 9, 2020):
yes I did.
@MartinKuhl commented on GitHub (May 11, 2020):
The missing key was the folder /data/nginx. After saving and restoring the folder /data/nginx together with a database dump and restore now everting is back and ready to work.
@johncadengo commented on GitHub (Dec 12, 2020):
Just for anyone else attempting this, I had a little trouble running the command as is:
Because it would default to
localhostfor the hostname. I would get this error:Not sure why, but I had to supply the hostname as
127.0.0.1to get mine to work:@rtthane commented on GitHub (Apr 18, 2021):
Can i ask what restore command you used please?
@MartinKuhl commented on GitHub (Apr 19, 2021):
Hi @rtthane,
first I save the following folders:
and the DB (remember to replace
mysqluserandmysqlpasswordwith the values from your docker-compose):For the restore I use the following commands (replace username and password again):
@rtthane commented on GitHub (Apr 19, 2021):
@MartinKuhl really useful info, thanks for taking the time to post it.
@chaptergy commented on GitHub (May 10, 2021):
Closing this in favor of https://github.com/jc21/nginx-proxy-manager/issues/168