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"