| 增加 上传出发备份功能,见 ima 个人知识库“huggingface space 代码上传出发备份操作“ | |
| 可能需要将 service 的 install 和 start 分开,在 start 前插入 restore 操作,即:先 restore 再 restart | |
| ## 目录结构 | |
| ### 本地目录结构 | |
| |-- .claude | |
| | |-- CLAUDE.md | |
| | | |
| |-- .config | |
| | |-- opencode | |
| | |-- AGENTS.md | |
| | | |
| |-- service | |
| | |-- cron-service.sh | |
| | |-- nodejs-service.sh | |
| | |-- opencode-service.sh | |
| | |-- start-service.sh | |
| | | |
| |-- script | |
| | |-- backup.sh | |
| | |-- exclude_list_system.txt | |
| | |-- exclude_list_root.txt | |
| | | |
| |-- .gitattributes | |
| |-- .gitignore | |
| |-- Dockerfile | |
| |-- note.md | |
| ### Docker 目录结构 | |
| |-- .backup | |
| | | |
| |-- .system | |
| | |-- service | |
| | | |-- cron-service.sh | |
| | | |-- nodejs-service.sh | |
| | | |-- opencode-service.sh | |
| | | |-- start-service.sh | |
| | |-- script | |
| | |-- backup.sh | |
| | |-- exclude_list_system.txt | |
| | |-- exclude_list_root.txt | |
| | | |
| |-- root | |
| | |-- .config | |
| | | |-- opencode | |
| | | |-- .gitignore | |
| | | |-- AGENTS.md | |
| | | |-- bun.lock | |
| | | |-- node_modules | |
| | | |-- package.json | |
| | | | |
| | |-- .claude | |
| | |-- CLAUDE.md | |
| | | |
| # google drive: | |
| ## 下载文件 | |
| node download-file.js "文件名.txt" ./downloads/ | |
| node download-file.js 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms | |
| ## 上传文件 | |
| node upload-file.js ./local-file.txt | |
| node upload-file.js ./document.pdf "云端文档.pdf" |