From: Christoph Egger Date: Mon, 5 Jan 2015 17:58:55 +0000 (+0100) Subject: [backup-zfs] use pipelined mode (way faster) X-Git-Url: https://git.siccegge.de//index.cgi?p=tools.git;a=commitdiff_plain;h=1247ccbd3ce61a6075a3a5c142028ac478c019f7 [backup-zfs] use pipelined mode (way faster) --- diff --git a/backup-zfs b/backup-zfs index 9eef4c2..4ebb78b 100755 --- a/backup-zfs +++ b/backup-zfs @@ -110,6 +110,7 @@ def sftp_send(dataset, reference=None): lastflush = 0 with open('/tmp/SHA256SUM', 'a') as digestfile: with sftp.open(filename, 'xw', BUFFER) as remotefile: + remotefile.set_pipelined() digest = hashlib.sha256() sys.stdout.write(term['purple']) done = 0