mirror of
https://github.com/bashclub/bashclub-zfs-push-pull.git
synced 2024-11-07 21:01:58 +01:00
ssh mode: zfsfind should not specify a path
This commit is contained in:
parent
720754a504
commit
aafb241393
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user