Automation: Final robust DB restore fixes and updated gitignore rules.
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user