]> git.siccegge.de Git - tools.git/commitdiff
[backup-zfs] use pipelined mode (way faster)
authorChristoph Egger <christoph@christoph-egger.org>
Mon, 5 Jan 2015 17:58:55 +0000 (18:58 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Mon, 5 Jan 2015 17:59:51 +0000 (18:59 +0100)
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:
     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
             digest = hashlib.sha256()
             sys.stdout.write(term['purple'])
             done = 0