mirror of
https://github.com/myronblair/infra
synced 2026-06-30 17:50:10 -05:00
52f6073593
AI context/memory from Claude Code sessions covering all infrastructure: JARVIS, NovaCPX, DO sites, Proxmox, FusionPBX, MediaStack, and project feedback/preferences.
2.0 KiB
2.0 KiB
name, description, metadata
| name | description | metadata | ||||||
|---|---|---|---|---|---|---|---|---|
| do-server-backup | DO server (165.22.1.228) config backup to GitHub — weekly cron, restore wizard, full rebuild guide |
|
GitHub repo myronblair/do-server-config (private) — all scripts, systemd units, WireGuard, OLS vhosts, cron, MySQL creds.
Why: So the DO server (orbis) can be fully rebuilt after a droplet failure in ~90 minutes.
What's Backed Up
scripts/— jarvis-deploy.sh, jarvis-watchdog.sh, jarvis-backup.sh, jarvis-agent.py, ttg-backup.shsystemd/— jarvis-agent.service, fastapi_ssh_server.servicewireguard/— wg0.conf (includes private keys — private repo)network/— netplan 50-cloud-init.yaml, hosts, hostnamecron/— root_custom (JARVIS lines), root_full (everything)ols-vhosts/— all 8 site OLS vhost configsmysql/— /root/.my.cnf, database listinfra/— snapshot of /opt/infra/smtp-docs/— /opt/smtp-for-websites/ docs
Schedule
Weekly Sunday 4am: 0 4 * * 0 /usr/local/bin/do-server-backup >> /var/log/do-server-backup.log 2>&1
Manual trigger
/usr/local/bin/do-server-backup on DO server
What's NOT backed up
- Website files (all in GitHub repos)
- Databases (jarvis-backup.sh daily → /var/backups/jarvis/, 7-day retention)
- SSL certs (re-issue via CyberPanel)
- Gitignored configs (api/config.php files — recreate manually from examples)
- CyberPanel itself (reinstall script: sh <(curl https://cyberpanel.net/install.sh))
Restore flow
- New Ubuntu 24.04 droplet
apt install git && git clone https://<PAT>@github.com/myronblair/do-server-config.git /opt/do-server-configbash /opt/do-server-config/restore.sh(8-phase interactive wizard)- Install CyberPanel, create sites, pull GitHub repos
- Restore DBs from jarvis-backup.sh archive
- Recreate gitignored config files
MySQL root password
Z9Of4NVs6ji74x (also in mysql/my.cnf in repo)