Caddy backup and restore checklist
How to back up and restore a Caddy reverse proxy in Docker, as a printable checklist: what to keep (the Caddyfile and the /data folder with your certificates), the restore steps, the DNS, port and rate-limit gotchas, and how to check it worked.
Written for Caddy 2.11.9, checked against the official docs on 2026-11-10. Always restore the same version you backed up.
Open this in Lab Lifeboat Quarterly restore-drill reminder (.ics)
Lab Lifeboat fills in your own paths, hosts and backup locations, adds your other apps in restore order, and works offline. Free, no account, nothing leaves your browser. Example paths below (under /opt and /mnt) are placeholders: use yours. Print this page with your browser’s Print command.
What to back up
- Your Caddyfile (/opt/caddy/Caddyfile) and docker-compose.yml with the caddy:2.11.9 image.
- The Caddy data folder (/opt/caddy/caddy-data, mounted at /data). It holds your certificates and ACME account. If you lose it, Caddy requests new certificates, which is fine once but can hit rate limits if repeated.
- The config folder (/opt/caddy/caddy-config, mounted at /config) is useful but not critical.
Restore
- Point each domain's A/AAAA records at the new host's public IP. Automatic HTTPS needs them in place.
- Open TCP 80 and 443 to the host (and UDP 443 if you use HTTP/3).
- Copy the Caddyfile and compose file back to /opt/caddy, and the data and config folders to their paths.
cd /opt/caddy docker compose up -d docker exec caddy caddy validate --config /etc/caddy/Caddyfile docker logs caddy - After any Caddyfile edit, reload: docker exec caddy caddy reload --config /etc/caddy/Caddyfile
Gotchas
- The /data folder holds your certificates and ACME account. Losing it once is fine, because Caddy requests new certificates, but repeated losses can hit rate limits.
- Automatic HTTPS needs each domain’s A/AAAA records pointing at the new host before you start Caddy.
- Open TCP 80 and 443 to the host, and UDP 443 if you use HTTP/3.
- Validate the Caddyfile before reloading it.
- When Caddy handles HTTPS, do not leave app ports such as 2283 (Immich) or 8096 (Jellyfin) open on the router.
Check the restore worked
- Open each site over https and check the certificate is valid.
- Make sure app ports such as 2283 (Immich) and 8096 (Jellyfin) are not open on the router when Caddy handles HTTPS.
- Write down today's date as the last restore test.
Where Caddy fits in a full homelab restore
Restore the hypervisor first, then the password manager (it holds the other secrets), then the reverse proxy, then the apps:
FAQ
What do I need to back up for Caddy?
Your Caddyfile, your docker-compose.yml, and the folder mounted at /data, which holds the certificates and ACME account. The /config folder is useful but not critical.
What happens if I lose Caddy's data folder?
Caddy requests new certificates on the next start. That is fine once, but repeating it can hit certificate authority rate limits.
Why does Caddy not get a certificate after a restore?
Usually DNS still points at the old IP, or ports 80 and 443 are not open to the new host. Fix those, then check docker logs caddy.
Related guides
Sources
- Caddy docs: Data directory (checked 2026-11-10)
Part of Lab Lifeboat, the free offline homelab disaster recovery planner from HomelabWise. How we research

