#! /bin/bash # Roderick Derks # www.r71.nl # 20061111 # # backup vmware's virtual machines to a remote computer # 1. first stop the vm's that are running # 2. copy the vm files # 3. start only the vm's that were running ######################################## ### day and hour ### check local machine name echo $HOSTNAME > ${LOGFILE} # flush logfile and add data # check if remote server is up using return value: 1 is failed (down), 0 is success (up) ################################ IFS=$'n' # needed to prevent problems with filenames containing spaces in arrays #echo count to 30 ## echo >> ${LOGFILE}; echo ## #echo "Elements in array0: ${array0[@]}" for VM in ${array0[@]} ## sleep 120 # my mailserver is booting now so wait a little bit exit 0 |
Leave a Reply