From 7e0a2a583e4d052601e4a706372d96a0ff428e8d Mon Sep 17 00:00:00 2001 From: Kevin McCormick Date: Fri, 28 Jul 2017 11:02:01 -0700 Subject: [PATCH] ssh mode: log file details of received snapshots Instead of just 10+ log entries saying receiving a snapshot, give at least some details on which file is in flight. --- backup-zfs | 1 + 1 file changed, 1 insertion(+) diff --git a/backup-zfs b/backup-zfs index 702b7f2..18eb1e3 100755 --- a/backup-zfs +++ b/backup-zfs @@ -202,6 +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" if [[ $file =~ \.gpg$ ]] ; then ssh "$srchost" zfsget "$file" | gpg | ZFS "$desthost" receive $recv_opts -Fue "$dest" \ && ssh "$srchost" rm "$file"