Nginx app backup

Hi,

I’m looking for a reliable way to backup my nginx config and store it in git so that I can go backwards and also have history.

I’ve consulted AI but they are all over the place. I was hoping someone here can either tell me the best practice or point me to a good resource where I can read up on it.

Thanks!

If you want to be backing up your app configs to git, the TrueNAS apps ecosystem really isn’t the way to do it. Install Dockge, and use that to manage them. Dockge stores the Compose stacks and other related data on disk as plain files, which you can in turn store in a git repo or elsewhere.

And if you’re going to do that, consider using Caddy as your reverse proxy rather than NPM:

1 Like

Dan,

Thanks for the info.

I guess I wasn’t 100% clear on what I’m trying to do. I want to back up the configuration I’m doing in NPM not the compose file settings that are in the TrueNAS GUI.

I’ve considered Dockage but for now TrueNAS on its own is working well enough for me. My long term plan is to get a 2nd server for virtualization and to run TrueNAS only as storage.

Just to avoid confusion, Nginx and Nginx Proxy manager are totally different apps.
Afaik, NPM not have an integrated way to backup-restore config, so the only way i know (and what i’m doing) is to entirely backup the volumes /data and /etc/letsencrypt, as already suggested