OpenCode Deployer commited on
Commit
be7bbc3
·
1 Parent(s): 3df51e8
note.md CHANGED
@@ -18,6 +18,11 @@
18
  | |-- opencode-service.sh
19
  | |-- start-service.sh
20
  |
 
 
 
 
 
21
  |-- .gitattributes
22
  |-- .gitignore
23
  |-- Dockerfile
@@ -32,6 +37,10 @@
32
  | | |-- nodejs-service.sh
33
  | | |-- opencode-service.sh
34
  | | |-- start-service.sh
 
 
 
 
35
  |
36
  |-- root
37
  | |-- .config
 
18
  | |-- opencode-service.sh
19
  | |-- start-service.sh
20
  |
21
+ |-- script
22
+ | |-- backup.sh
23
+ | |-- exclude_list_system.txt
24
+ | |-- exclude_list_root.txt
25
+ |
26
  |-- .gitattributes
27
  |-- .gitignore
28
  |-- Dockerfile
 
37
  | | |-- nodejs-service.sh
38
  | | |-- opencode-service.sh
39
  | | |-- start-service.sh
40
+ | |-- script
41
+ | |-- backup.sh
42
+ | |-- exclude_list_system.txt
43
+ | |-- exclude_list_root.txt
44
  |
45
  |-- root
46
  | |-- .config
script/backup.sh CHANGED
@@ -1,2 +1,5 @@
1
- # 备份 .system 文件
2
  tar -czvf /.backup/.system.tar.gz --exclude-from=exclude_list_system.txt -C /.system .
 
 
 
 
1
+ # 备份 /.system 文件
2
  tar -czvf /.backup/.system.tar.gz --exclude-from=exclude_list_system.txt -C /.system .
3
+
4
+ # 备份 /root 文件
5
+ tar -czvf /.backup/root.tar.gz --exclude-from=exclude_list_root.txt -C /.system .
script/exclude_list_root.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # exclude_list_root.txt
2
+ /root/.bun
3
+ /root/.cache
4
+ # /root/.claude
5
+ /root/.config/opencode/node_modules
6
+ /root/.local
7
+ /root/.npm
script/exclude_list_system.txt CHANGED
@@ -0,0 +1,2 @@
 
 
 
1
+ # exclude_list_system.txt
2
+ # 暂时没有需要排除的文件或目录