🔄 卡若AI 同步 2026-03-02 17:10 | 更新:金仓、运营中枢工作台 | 排除 >20MB: 14 个

This commit is contained in:
2026-03-02 17:10:40 +08:00
parent bbbb99999c
commit db75f7eb8e
4 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
#!/usr/bin/env python3
"""
通过 DSM Web API 查询并尝试启用 Time MachineNetBackup
在可访问 192.168.1.201 的本机运行python3 ckbnas_timemachine_via_api.py
"""
import requests
import json
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
BASE = "http://192.168.1.201:5000/webapi"
USER = "fnvtk"
PASS = "zhiqun1984"
def login():
r = requests.get(f"{BASE}/auth.cgi", params={
"api": "SYNO.API.Auth", "version": "3", "method": "login",
"account": USER, "passwd": PASS, "session": "FileStation", "format": "sid"
}, verify=False, timeout=10)
d = r.json()
if not d.get("success"):
print("登录失败:", d.get("error", {}).get("code"), d)
return None
return d["data"]["sid"]
def query_api(sid):
"""查询所有 API 列表,找与 FileService / SMB / TimeMachine 相关的"""
r = requests.get(f"{BASE}/query.cgi", params={
"api": "SYNO.API.Info", "version": "1", "method": "query", "query": "all", "_sid": sid
}, verify=False, timeout=10)
d = r.json()
if not d.get("success"):
print("查询 API 失败:", d)
return {}
apis = d.get("data", {})
# 筛选可能和文件服务/Time Machine 相关的
for name, info in apis.items():
if "file" in name.lower() or "smb" in name.lower() or "share" in name.lower() or "time" in name.lower():
print(name, "->", info.get("path"), "maxVersion:", info.get("maxVersion"))
return apis
def main():
print("1. 登录 DSM...")
sid = login()
if not sid:
return
print("2. 查询 API 列表(含 file/smb/share/time 的项)...")
query_api(sid)
print("\n若上面有 SYNO.Core.* 或 SYNO.FileService 等,可据此继续调用。")
print("当前 DSM 未公开「仅启用某共享 Time Machine」的单一 API通常需在 DSM 控制面板手动开启。")
if __name__ == "__main__":
main()

View File

@@ -91,3 +91,11 @@ bash "01_卡资/金仓_存储备份/群晖NAS管理/scripts/time_machin
| 挂载 | `/Volumes/NetBackup` 存在后再执行 tmutil |
完成「一」后,再在 Mac 执行「二」即可正常备份。
---
## 五、卡若AI 已完成的自动化
- 已通过浏览器登录 ckbnas DSMhttp://192.168.1.201:5000进入 **控制面板 → 文件服务 → 高级设置**
- **启用通过 SMB 进行 Bonjour Time Machine 播送** 已勾选。
- 请你在 DSM 中手动完成最后一步:点击 **「设置 Time Machine 文件夹」**,在弹窗列表中**滚动找到 NetBackup**,勾选 **NetBackup**,点击 **保存**,回到文件服务页面点击 **应用**。完成后在 Mac 上重新选择备份磁盘为 NetBackup 即可。

View File

@@ -207,3 +207,4 @@
| 2026-03-02 04:34:31 | 🔄 卡若AI 同步 2026-03-02 04:34 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-03-02 04:45:41 | 🔄 卡若AI 同步 2026-03-02 04:45 | 更新Cursor规则、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-03-02 13:43:12 | 🔄 卡若AI 同步 2026-03-02 13:43 | 更新Cursor规则、金仓、水桥平台对接、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-03-02 13:50:12 | 🔄 卡若AI 同步 2026-03-02 13:49 | 更新:金仓、运营中枢工作台 | 排除 >20MB: 14 个 |

View File

@@ -210,3 +210,4 @@
| 2026-03-02 04:34:31 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-02 04:34 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-03-02 04:45:41 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-02 04:45 | 更新Cursor规则、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-03-02 13:43:12 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-02 13:43 | 更新Cursor规则、金仓、水桥平台对接、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-03-02 13:50:12 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-02 13:49 | 更新:金仓、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |