]> git.siccegge.de Git - tools.git/blobdiff - backup-zfs
[backup-zfs] use pipelined mode (way faster)
[tools.git] / backup-zfs
index 9eef4c24c6de3f68eabc424b60e1fbe60e961f1c..4ebb78bc9bd292b4d23e89c763f8c9fbd33ad9d8 100755 (executable)
@@ -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