From 1247ccbd3ce61a6075a3a5c142028ac478c019f7 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Mon, 5 Jan 2015 18:58:55 +0100 Subject: [PATCH] [backup-zfs] use pipelined mode (way faster) --- backup-zfs | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5