bundles/backup-client: use --compress-level=1 instead of -z
This commit is contained in:
parent
1fce93ad30
commit
459c7731cb
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_backup() {
|
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" \
|
--rsync-path="/usr/bin/rsync --fake-super" \
|
||||||
-e "ssh -o IdentityFile=/etc/backup.priv -o StrictHostKeyChecking=accept-new -p ${port}" \
|
-e "ssh -o IdentityFile=/etc/backup.priv -o StrictHostKeyChecking=accept-new -p ${port}" \
|
||||||
"$1" "$ssh_login":backups/
|
"$1" "$ssh_login":backups/
|
||||||
|
|
Loading…
Reference in a new issue