Automation: Final robust DB restore fixes and updated gitignore rules.

This commit is contained in:
Scott Idem
2026-01-12 18:33:05 -05:00
parent 7bd22d1086
commit f886250ae3
15 changed files with 140 additions and 59 deletions

View File

@@ -7,8 +7,16 @@
- **API Docs:** [https://dev-api.oneskyit.com/docs](https://dev-api.oneskyit.com/docs)
## 💾 Database Operations
- **Backup:** `./backup_db.sh`
- **Restore:** `./restore_db.sh` (Note: Moves current data to a backup folder first)
- **Manual Backup:** `./backup_db.sh` (Hot backup, live container)
- **Manual Restore:** `./restore_db.sh [path_to_file.gz]`
- **Automated Onsite Import:**
1. Drop a backup into `backups/import/`.
2. Run `./check_and_import.sh`.
3. The file will be restored and moved to `backups/imported/`.
## ⏰ Scheduling
To backup every hour at 55 minutes past:
`55 * * * * /home/scott/OSIT_dev/aether_container_env/backup_db.sh`
## 📈 Scaling the API
1. Edit `.env` -> `AE_API_REPLICAS=X`