fix: 远端上传排除 tools/目录及脚本文件,仅上传备份数据

This commit is contained in:
RainySY
2026-05-12 15:47:12 +08:00
parent 384f039f43
commit c7920acd0c

View File

@@ -495,7 +495,7 @@ upload_remote() {
local list_file="$TMPDIR/.rlist"
local dirs_file="$TMPDIR/.rdirs"
[[ -z $Backup ]] && { echoRgb "Backup路徑為空" "0"; return 1; }
find "$Backup" -type f > "$list_file"
find "$Backup" -type f ! -path "*/tools/*" ! -name 'start.sh' ! -name 'appList.txt' ! -name 'restore_settings.conf' > "$list_file"
# 提取所有目錄並在遠程創建 (WebDAV MKCOL, SMB 跳過)
if [[ $proto = webdav ]]; then
while read -r f; do