ssh mode: fix bug on log entry

This commit is contained in:
Kevin McCormick 2017-08-01 14:53:58 -07:00
parent 7e0a2a583e
commit 21f780de69

View File

@ -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"