소스 검색

Añadoinformacion sobre children datasets, encontrados o no.

pull/1/head
Pablo Sarria 5 년 전
부모
커밋
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

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'`
echo "done."

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

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

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

# we send the config


불러오는 중...
취소
저장