From aafb241393ba321e8db9e7f412fdc251c0816a2b Mon Sep 17 00:00:00 2001 From: Kevin McCormick Date: Fri, 10 Mar 2017 10:10:57 -0800 Subject: [PATCH] ssh mode: zfsfind should not specify a path --- backup-zfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup-zfs b/backup-zfs index ea33b21..702b7f2 100755 --- a/backup-zfs +++ b/backup-zfs @@ -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"