bundles/backup-client: use --compress-level=1 instead of -z

This commit is contained in:
Franzi 2021-05-14 10:47:58 +02:00
parent 1fce93ad30
commit 459c7731cb
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -18,7 +18,8 @@ then
fi
do_backup() {
rsync -zaAP --numeric-ids --delete --relative \
# Compress level 1 is a good compromise between speed and cpu usage.
rsync --compress-level=1 -aAP --numeric-ids --delete --relative \
--rsync-path="/usr/bin/rsync --fake-super" \
-e "ssh -o IdentityFile=/etc/backup.priv -o StrictHostKeyChecking=accept-new -p ${port}" \
"$1" "$ssh_login":backups/