From 94ee600180d92ffb6f81da7c7c10bf44937fb095 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 1 Dec 2019 14:06:50 +0100 Subject: [PATCH] common: backup_files: Fixed packing tar --- roles/common/templates/backup_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/templates/backup_files.sh b/roles/common/templates/backup_files.sh index 238d133..08013e2 100644 --- a/roles/common/templates/backup_files.sh +++ b/roles/common/templates/backup_files.sh @@ -12,7 +12,7 @@ base="$(basename "$path")"; dest={{ backups_files_directory | quote }}"/$name.tar.gpg"; # Execution -tar --directory="$dir" --create --file="$base" | +tar --directory="$dir" --create --file=- "$base" | pv --quiet --buffer-size 256M | gpg --quiet --no-verbose --compress-level 0 --encrypt --recipient {{ backup_gpg_fingerprint | quote }} --trust-model always > "$dest"; chmod u+r-wx,g+r-wx,o+r-wx "$dest";