mirror of
https://github.com/bashclub/bashclub-zfs-push-pull.git
synced 2024-11-07 13:01:58 +01:00
ssh mode: fix bug on log entry
This commit is contained in:
parent
7e0a2a583e
commit
21f780de69
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user