Live off-site Postgres copy on 247 replaces the nightly pg_dump; backup retention in deploy.sh
- ops/pgbackup: SSH tunnel + pg_receivewal (slot zareian_247) + daily verified pg_basebackup (keep 7) and a restore check, all run on 78.38.35.247 as systemd units - /api/health reports offsiteBackup (slot active/lag/lost) and warns; OFFSITE_WAL_SLOT setting - removed statuslog backup_db/backup_verify and their health warnings - deploy.sh keeps 3 pre-deploy dumps, 3 local patches, drops manual backups after 30 days - docs: operations backup section, security item 14 closed, CLAUDE.md status Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -134,11 +134,6 @@ curl https://mathapi.tadrisino2.ir/api/health
|
||||
|
||||
اینها عمداً نوشته شدهاند تا کسی دوباره کشفشان نکند:
|
||||
|
||||
- **دیتابیس هنوز SQLite است**، نه Postgres. برای حجمِ فعلی کافیست، ولی
|
||||
تکنویسنده بودنش اولین گلوگاهِ مقیاس است.
|
||||
- **بکاپ فقط روی همان ماشین است.** `deploy.sh` پیش از `migrate` از `db.sqlite3` بکاپ میگیرد
|
||||
(۲ تای آخر)، ولی نسخهای بیرون از سرور نیست. جزئیات در
|
||||
[`docs/operations.md`](docs/operations.md).
|
||||
- **`CACHE_URL` روی سرور خالی است، عمداً**، پس محدودیتِ نرخ بینِ workerها مشترک نیست. Redisِ روی آن ماشین
|
||||
مالِ تیمهای دیگر است و به آن وصل نمیشویم؛ Redisِ اختصاصیِ خودمان یک تصمیمِ باز پیش از لانچ است.
|
||||
`/api/health` این را هشدار میدهد.
|
||||
|
||||
Reference in New Issue
Block a user