fix: 远端上传排除 tools/目录及脚本文件,仅上传备份数据
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user