From 81d0bee7ae475ff00facc6b1ae4f0b8709321c18 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Wed, 26 Jan 2022 23:59:13 +0100 Subject: [PATCH] comments --- zfs_autobackup/CmdPipe.py | 6 ++++++ zfs_autobackup/ZfsAuto.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/zfs_autobackup/CmdPipe.py b/zfs_autobackup/CmdPipe.py index da1a789..04680d0 100644 --- a/zfs_autobackup/CmdPipe.py +++ b/zfs_autobackup/CmdPipe.py @@ -1,3 +1,9 @@ +# This is the low level process executing stuff. +# It makes piping multiple process easier. +# You can specify a handler for each line of stderr output for each item in the pipe. +# Every item also has its own exitcode handler. +# There is one stdout handler for the last item in the pipe. This is also called for each line. + import subprocess import os import select diff --git a/zfs_autobackup/ZfsAuto.py b/zfs_autobackup/ZfsAuto.py index f0fe32c..be67e0a 100644 --- a/zfs_autobackup/ZfsAuto.py +++ b/zfs_autobackup/ZfsAuto.py @@ -136,7 +136,7 @@ class ZfsAuto(object): group=parser.add_argument_group("SSH options") group.add_argument('--ssh-config', metavar='CONFIG-FILE', default=None, help='Custom ssh client config') group.add_argument('--ssh-source', metavar='USER@HOST', default=None, - help='Source host to get backup from.') + help='Source host to pull backup from.') group.add_argument('--ssh-target', metavar='USER@HOST', default=None, help='Target host to push backup to.')