|
|
@ -12,7 +12,7 @@ base="$(basename "$path")";
|
|
|
|
dest={{ backups_files_directory | quote }}"/$name.tar.gpg";
|
|
|
|
dest={{ backups_files_directory | quote }}"/$name.tar.gpg";
|
|
|
|
|
|
|
|
|
|
|
|
# Execution
|
|
|
|
# Execution
|
|
|
|
tar --directory="$dir" --create --file="$base" |
|
|
|
|
tar --directory="$dir" --create --file=- "$base" |
|
|
|
|
pv --quiet --buffer-size 256M |
|
|
|
|
pv --quiet --buffer-size 256M |
|
|
|
|
gpg --quiet --no-verbose --compress-level 0 --encrypt --recipient {{ backup_gpg_fingerprint | quote }} --trust-model always > "$dest";
|
|
|
|
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";
|
|
|
|
chmod u+r-wx,g+r-wx,o+r-wx "$dest";
|
|
|
|