How do I back up CertMate, and what is the restore procedure on a fresh host? #187
-
|
I want to make sure I can recover from a host failure: lost disk, accidental |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Two backup paths exist: the automatic unified backup that CertMate writes itself, and the manual snapshot of the data directory that you should also take. They overlap; the manual one is your insurance against the automatic one being broken. What CertMate stores (the entire surface). Backing up the entire Automatic backups. CertMate writes a unified backup zip to Manual backup (recommended cadence: before any upgrade, and on a periodic schedule). A whole-directory snapshot: docker exec <container-name> tar czf /tmp/certmate.tar.gz /app/data
docker cp <container-name>:/tmp/certmate.tar.gz ./certmate-$(date +%Y%m%d).tar.gzOr, if you mounted Restore on a fresh host.
Restore from the unified zip only (settings, no certs). If the certs directory is gone but you still have a backup zip, drop the zip into What you cannot recover from a backup.
Tested? Test the restore once, on a throwaway host, before you need it. The most common reason a restore fails in anger is that the operator never ran one in calm — the volume mount was off by one path component, the file ownership was wrong, the compose file had drifted from the original. Twenty minutes once is much cheaper than two hours under pressure. |
Beta Was this translation helpful? Give feedback.
Two backup paths exist: the automatic unified backup that CertMate writes itself, and the manual snapshot of the data directory that you should also take. They overlap; the manual one is your insurance against the automatic one being broken.
What CertMate stores (the entire surface).