This commit is contained in:
@@ -23,6 +23,9 @@ fi
|
||||
ssh -o BatchMode=yes -o ConnectTimeout=8 "$unraid_host" "test \"\$(id -un)\" = root && docker info >/dev/null"
|
||||
|
||||
git ls-files --cached --others --exclude-standard -z \
|
||||
| while IFS= read -r -d '' tracked_path; do
|
||||
[[ -e "$tracked_path" ]] && printf '%s\0' "$tracked_path"
|
||||
done \
|
||||
| tar --null --files-from=- --create --gzip --file="$local_archive"
|
||||
|
||||
scp -q "$local_archive" "$unraid_host:/tmp/$archive_name"
|
||||
|
||||
Reference in New Issue
Block a user