Changeset 31212
- Timestamp:
- Apr 6, 2011, 4:50:57 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/mysql-dump/neb_copy.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/mysql-dump/neb_copy.sh
r31192 r31212 2 2 3 3 # This script is supposed to be executed on ipp001 4 # 5 # Its main steps: 6 # 1) Copies the MD5 checksum from the ithe host where the nebulous db was dumped 7 # using neb_dump.sh 8 # 2) Copies the nebulous dump 9 # 3) Checks the copy agaisnt the checksum 10 # In case of failure, an e-mail is sent to $EMAILTO 4 11 5 12 . /home/panstarrs/ipp/mysql-dump/functions.sh 13 EMAILTO=schastel@ifa.hawaii.edu 6 14 7 15 SOURCE_HOST=ippdb02 … … 35 43 if [ "$ITERATION" -ge "$MAX_ITERATIONS" ]; then 36 44 log ERROR "Copy of $SOURCE/$MD5FILE failed after $ITERATION iterations. Giving up" 45 email "Nebulous MD5 copy failed" $EMAILTO "Copy of $SOURCE/$MD5FILE failed after $ITERATION iterations. Giving up" 37 46 exit 1 38 47 fi … … 49 58 if [ "$?" -ne "0" ]; then 50 59 log ERROR "Can't copy nebulous backup file [$FILE_TO_COPY]" 60 email "Nebulous backup file [$FILE_TO_COPY] copy failed" $EMAILTO "Can't copy nebulous backup file [$FILE_TO_COPY]" 51 61 exit 2 52 62 else … … 59 69 if [ "$ACTUAL_MD5SUM" != "$EXPECTED_MD5SUM" ]; then 60 70 log ERROR "Checksums are different: actual=[$ACTUAL_MD5SUM], expected=[$EXPECTED_MD5SUM]" 71 email "Bad Nebulous checksum" $EMAILTO "Checksums are different: actual=[$ACTUAL_MD5SUM], expected=[$EXPECTED_MD5SUM]" 61 72 exit 3 62 73 fi
Note:
See TracChangeset
for help on using the changeset viewer.
