X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=zfs-restore;h=4014ff74598a277f04e330f79757364ccf3fda69;hb=f1a0eaf6cb15faf514577513f17fa9a06c34d129;hp=84de61e697ee9f5e4b0b93ba43cc2335aa8c53b8;hpb=cc81a4f1a8387e6991eb447383cae05220a65d15;p=zfs-ubuntu%2F.git diff --git a/zfs-restore b/zfs-restore index 84de61e..4014ff7 100755 --- a/zfs-restore +++ b/zfs-restore @@ -54,7 +54,7 @@ fi src_pool_guid=`zpool get guid $src_pool 2>&1 | grep $src_pool | awk '{ print $3 }'` zpool get guid $src_pool > /dev/null 2>&1 if [ $? != 0 ]; then - fatal_and_exit "-E- Unable to extract the guid for the src pool: $src_pool" $mailto + fatal_and_exit "-E- Unable to extract the guid for the src pool on $hostname: $src_pool" $mailto fi # Setup our backup marker names @@ -80,12 +80,12 @@ fi # Now send the src filesystem if [[ -n "$SCRIPT_UNDER_TEST" ]]; then - echo "$zfs send -R $src_pool/$last_backup_marker | $ssh $dst_hostname $zfs recv -dv $dst_pool" + echo "$zfs send -Rc $src_pool/$last_backup_marker | $ssh $dst_hostname $zfs recv -dv $dst_pool" else if [[ $throttle_enable == 1 && -e $throttle ]]; then - $zfs send -R "$src_pool/$last_backup_marker" | $throttle $throttle_opt | $ssh $dst_hostname $zfs recv -dv $dst_pool + $zfs send -Rc "$src_pool/$last_backup_marker" | $throttle $throttle_opt | $ssh $dst_hostname $zfs recv -dv $dst_pool else - $zfs send -R "$src_pool/$last_backup_marker" | $ssh $dst_hostname $zfs recv -dv $dst_pool + $zfs send -Rc "$src_pool/$last_backup_marker" | $ssh $dst_hostname $zfs recv -dv $dst_pool fi fi