common: Replaced buffer with pv as buffer

Also increased buffer size to 256M
dehydrated
Felix Stupp 5 years ago
parent 4c9a2a8eb7
commit e8503c41a4
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -5,7 +5,7 @@ set -euxo pipefail;
file={{ backups_databases_directory | quote }}"/$1.sql.gpg"; file={{ backups_databases_directory | quote }}"/$1.sql.gpg";
mysqldump --opt --databases "$1" | mysqldump --opt --databases "$1" |
buffer -m 128M -s 128K | pv --quiet --buffer-size 256M |
gpg --quiet --no-verbose --encrypt --recipient {{ backup_gpg_fingerprint | quote }} --trust-model always > "$file"; gpg --quiet --no-verbose --encrypt --recipient {{ backup_gpg_fingerprint | quote }} --trust-model always > "$file";
chmod u+r-wx,g+r-wx,o+r-wx "$file"; chmod u+r-wx,g+r-wx,o+r-wx "$file";
{{ global_helper_directory | quote }}/backup_rename.sh "$file"; {{ global_helper_directory | quote }}/backup_rename.sh "$file";

@ -13,7 +13,7 @@ dest={{ backups_files_directory | quote }}"/$name.tar.gpg";
# Execution # Execution
tar --directory="$dir" --create --file="$base" | tar --directory="$dir" --create --file="$base" |
buffer -m 128M -s 128K | 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";
{{ global_helper_directory | quote }}/backup_rename.sh "$dest"; {{ global_helper_directory | quote }}/backup_rename.sh "$dest";

Loading…
Cancel
Save