X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=zfs-replicate;h=a5a3ad9653787db0fcd5798e5fccddc60c7082fc;hb=042746138ba0f15394db01ce99dd5b5e81002451;hp=7f205e2ea87698e02d1acb0d9ecc330b0e5ac889;hpb=4f58891850b6285301001bf64cb31659ee87af67;p=zfs-ubuntu%2F.git diff --git a/zfs-replicate b/zfs-replicate index 7f205e2..a5a3ad9 100755 --- a/zfs-replicate +++ b/zfs-replicate @@ -170,7 +170,7 @@ $zfs list -H -t snapshot | grep ^${backup_pool}/${remote_fs}@ | grep -v ^${backup_pool}/${current_backup_marker} | awk "{gsub(/^$backup_pool./,\"\",\$1); print\$1}" > $local_list -if [ $? != 0 ]; then +if [[ $? != 0 ]] && [[ $expect_empty_remote_list == 0 ]]; then fatal_and_exit "-E- local $zfs list on $hostname command failed" $mailto fi