Change-Id: I3d7820c19f4549163d946668f2c3c99a3d5f79fe
$zfs list -H -t snapshot |
grep ^${remote_fs}@ |
awk '{print$1}' > $remote_list
-if [ $? != 0 ]; then
- fatal_and_exit "-E- remote $zfs list on $hostname command failed" $mailto
+if [[ $? != 0 ]] && [[ $expect_empty_remote_list == 0 ]]; then
+ echo "-W- Unable to find $remote_fs on the remote host $hostname. Unable to proceed since the"
+ echo " expect_empty_remote_list option has not been set to allow this, skipping replicate operation."
+ fatal_and_exit "-E- remote $zfs list on $hostname for $remote_fs command failed" $mailto
fi
# List the snapshots on the local machine.