Files
alist-serve-resource/docs/BACKUP_RESTORE.md
T

28 lines
895 B
Markdown
Raw 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.
# 备份 / 恢复
> 重要区分(规格 §35):AList 的 data/config 与 NAS 真实文件 `/volume1/Class` 是两回事。
> 备份 AList ≠ 备份客户文件。
## 需要备份
| 对象 | 说明 |
|---|---|
| AList data/config | `/volume1/docker/alist-serve-resource/data`(含数据库、用户、role) |
| `.env` | 加密备份,不落 Git 明文 |
| docker-compose.yml + docs | 已入 Git(gitea) |
| NocoDB 数据库 | 现成 DB 已有自动备份(你说过不用重复做) |
| n8n 数据 | 现有 n8n 已有备份策略 |
## 备份脚本占位
`scripts/backup.sh` / `restore.sh` 在 Phase 9 补全。当前 AList 数据目录可直接
tar 备份:
```bash
tar czf alist-serve-resource-data-$(date +%F).tar.gz -C /volume1/docker alist-serve-resource
```
## 恢复
Phase 9 补充完整步骤(停止容器 → 还原目录 → 启动 → 跑 reconciliation)。