summaryrefslogtreecommitdiff
path: root/bin/byteback-backup
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-08-11 16:08:28 +0300
committerSteve Kemp <steve@steve.org.uk>2015-08-11 16:08:28 +0300
commit7811efcc2983adeedf6e37491d2dc6d22e45b6ec (patch)
tree999e2cd5a2d3e28643fb39887c03e33ab45a3efb /bin/byteback-backup
parentf70c16cb5e236416d276aea54c4f65d6a7a74484 (diff)
Enable (ssh) compression.
This is useful to speed up backups, because otherwise they will be I/O-bound and the CPU-overhead is a net-win.
Diffstat (limited to 'bin/byteback-backup')
-rwxr-xr-xbin/byteback-backup2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/byteback-backup b/bin/byteback-backup
index 11ed312..55511c2 100755
--- a/bin/byteback-backup
+++ b/bin/byteback-backup
@@ -164,6 +164,8 @@ def ssh(*ssh_args)
'-o', 'BatchMode=yes',
'-o', 'ConnectionAttempts=5',
'-o', 'ConnectTimeout=30',
+ '-o', 'Compression=yes',
+ '-o', 'CompressionLevel=3',
'-o', 'ServerAliveInterval=60',
'-o', 'TCPKeepAlive=yes',
'-x', '-a',