From 21f780de69bc6497ab919b46267ebff2d63c5a0b Mon Sep 17 00:00:00 2001 From: Kevin McCormick Date: Tue, 1 Aug 2017 14:53:58 -0700 Subject: [PATCH] ssh mode: fix bug on log entry --- backup-zfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup-zfs b/backup-zfs index 18eb1e3..0d1887a 100755 --- a/backup-zfs +++ b/backup-zfs @@ -202,7 +202,7 @@ elif $fromssh ; then log "receiving incremental snapshot from $src to $dest" #ZFS "$srchost" send $send_opts -R -I "$last" "$cur" | ZFS "$desthost" receive $recv_opts -Fue "$destfs" || die $? "zfs incremental send failed" for file in $(ssh "$srchost" zfsfind | sort) ; do - log "receiving $file from $host" + log "receiving $file from $srchost" if [[ $file =~ \.gpg$ ]] ; then ssh "$srchost" zfsget "$file" | gpg | ZFS "$desthost" receive $recv_opts -Fue "$dest" \ && ssh "$srchost" rm "$file"