Last active 2 weeks ago
0
0
1
| 1 | # Swag cleanup steps |
| 2 | |
| 3 | 1. Don't destroy the account/cert state — just version the parts that matter |
| 4 | The SWAG /config volume has a mix of: |
| 5 | Config you authored (nginx site-confs, proxy-confs, fail2ban jail overrides, .env/compose) → put this in git |
| 6 | Secrets (DNS API tokens in dns-conf/*.ini, if you ever add them) → git-ignore these, or use a separate secrets file/Unraid's own secrets store |
| 7 | State certbot manages (/config/etc/letsencrypt/{live,archive,renewal,accounts}) → don't hand-manage this in git, just back it up as a tarball before you touch anything |
| 8 | 2. Suggested low-impact day plan |
| 9 | # 1. Snapshot everything first, untouched |
| 10 | docker exec swag tar czf /config/pre-rebuild-backup.tar.gz \ |