nomadro/deploy/backup/README.md
eric 56b29205e7 Integrate four verticals into nomadro portal with shared packages and API gateway.
Mount /vip with nomadvip+payjsapi, add @nomadro/pay|pb|sdk, apps/api, /admin shell, and backup/rollback scripts under git.nomadro.cn workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 20:16:44 -05:00

22 lines
600 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Backup / rollback
| Script | Role |
|--------|------|
| `backup.sh` | 定时备份 PocketBase `pb_data` + env 快照,保留 `BACKUP_KEEP`(默认 14)份 |
| `rollback.sh` | 从某次 stamp 回滚 PB 数据 |
## 服务器 crontab 示例
```cron
15 3 * * * ROOT=/var/backups/nomadro /bin/bash /var/www/nomadro.cn/deploy/backup/backup.sh >>/var/log/nomadro-backup.log 2>&1
```
回滚:
```bash
sudo bash deploy/backup/rollback.sh # 用 LATEST
sudo bash deploy/backup/rollback.sh 20260929_031500
```
日志溯源:备份目录内 `MANIFEST.txt` + `/var/log/nomadro-backup.log`。