瀏覽代碼

Añadoinformacion sobre children datasets, encontrados o no.

pull/1/head
Pablo Sarria 6 年之前
父節點
當前提交
ef255d79b2
共有 1 個文件被更改,包括 4 次插入 和 1 次删除
  1. +4
    -1
      zonebackuptozone.sh

+ 4
- 1
zonebackuptozone.sh 查看文件

@@ -103,11 +103,12 @@ send_snap ${UUID}


# we check this UUID for additional datasets # we check this UUID for additional datasets


echo "Looking for addtional datasets in ${UUID}..."
echo "Looking for addtional children datasets in ${UUID}..."
DATASET=`vmadm get ${UUID} | json datasets.0 | sed 's/zones\///' | tr -d '\n'` DATASET=`vmadm get ${UUID} | json datasets.0 | sed 's/zones\///' | tr -d '\n'`
echo "done." echo "done."


if [ ! -z "${DATASET}" ]; then if [ ! -z "${DATASET}" ]; then
echo "Finded children dataset: ${DATASET}"
check_snap ${DATASET} check_snap ${DATASET}


if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@@ -118,6 +119,8 @@ if [ ! -z "${DATASET}" ]; then
fi fi


send_snap ${DATASET} send_snap ${DATASET}
else
echo "No children datasets finded."
fi fi


# we send the config # we send the config


Loading…
取消
儲存