ssh mode: zfsfind should not specify a path

This commit is contained in:
Kevin McCormick 2017-03-10 10:10:57 -08:00
parent 720754a504
commit aafb241393

View File

@ -201,7 +201,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 "$srcpath" | sort) ; do
for file in $(ssh "$srchost" zfsfind | sort) ; do
if [[ $file =~ \.gpg$ ]] ; then
ssh "$srchost" zfsget "$file" | gpg | ZFS "$desthost" receive $recv_opts -Fue "$dest" \
&& ssh "$srchost" rm "$file"