fix tar cmd line again

This commit is contained in:
Hartmut Bauer committed 2025-12-20 14:45:47 +01:00
1 parent fe5d3487c2
commit 5426756bfb
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -495,8 +495,8 @@ tar_dir() {
if [[ "$(uname)" == "Darwin" ]]; then
sort=""
fi
log $DEBUG "$DBG > tar -c -z --warning="no-file-ignored" --numeric-owner --one-file-system $sort --exclude \"@eaDir\" -C \"$root\" \"$dir\" | gpg --batch -c --passphrase xxxx -o \"$archive\""
tar -c -z--warning=no-file-ignored --numeric-owner --one-file-system $sort --exclude "@eaDir" -C "$root" "$dir" 2>>$LOG_FILE | gpg --batch -c --passphrase $PASSPHRASE -o "$archive" 2>>$LOG_FILE
log $DEBUG "$DBG > tar -c -z --warning=\"no-file-ignored\" --numeric-owner --one-file-system $sort --exclude \"@eaDir\" -C \"$root\" \"$dir\" | gpg --batch -c --passphrase xxxx -o \"$archive\""
tar -c -z--warning="no-file-ignored" --numeric-owner --one-file-system $sort --exclude "@eaDir" -C "$root" "$dir" 2>>$LOG_FILE | gpg --batch -c --passphrase $PASSPHRASE -o "$archive" 2>>$LOG_FILE
check_pipe_rc ${PIPESTATUS[@]}
return $?
}
+2 -1
View File
@@ -3,6 +3,7 @@
# entrypoint for all actions
#
# 2.3.5. 20.12.2025 - fix not only logging but tar command itself
# 2.3.4 19.12.2025 - fix tar param: --warning="no-file-ignored"
# 2.3.3 18.12.2025 - smtp-relay läuft durch, dadurch ändern sich ggf. Dateien im Container, was
# zu Fehlern beim tar führt. Deshalb wird das Verzeichnis
@@ -34,7 +35,7 @@
# 2.1.7 29.04.2025 - 1. Schritt zur Umstellung auf podman
# 2.1.6 29.04.2025 - weekly backup Sa->SO
VER="2.3.4"
VER="2.3.5"
HERE=$(dirname "$0")
THIS_SCRIPT=$0