From ceee89f86b8162df968ef9868220b1fd1d27fecf Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Fri, 24 Jul 2026 06:10:41 -0300 Subject: [PATCH] fix(backup): treat 7z exit code 1 (warning) as success in archive_staging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Exit code 1 from 7z means a non-fatal warning — the archive IS created, just some files couldn't be compressed (e.g. broken symlinks, special files). Previously the function required filtered output to be empty alongside rc=1, causing any non-errno=2 stderr line to abort the entire backup and discard the archive. Now any rc=1 is treated as success (warning is still logged). --- k8s/automated-nfs-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/automated-nfs-backup.sh b/k8s/automated-nfs-backup.sh index 1ed6763..ded04ca 100644 --- a/k8s/automated-nfs-backup.sh +++ b/k8s/automated-nfs-backup.sh @@ -437,7 +437,7 @@ archive_staging() { fi if (( rc == 0 )); then return 0 - elif (( rc == 1 )) && [[ -z "$filtered_output" ]]; then + elif (( rc == 1 )); then return 0 fi return 1