diff options
Diffstat (limited to 'abs/core-testing/LinHES-system/bin')
-rw-r--r-- | abs/core-testing/LinHES-system/bin/backupcommon | 10 | ||||
-rwxr-xr-x | abs/core-testing/LinHES-system/bin/mythbackup | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-system/bin/backupcommon b/abs/core-testing/LinHES-system/bin/backupcommon index 9b75db3..39a62e9 100644 --- a/abs/core-testing/LinHES-system/bin/backupcommon +++ b/abs/core-testing/LinHES-system/bin/backupcommon @@ -359,7 +359,15 @@ check_files_and_tables () { } stop_mysqld () { $SV stop mysql ; } -start_mysqld () { $SV start mysql ; } +start_mysqld () { + $SV start mysql + for t in 1 2 4 8 ; do + ready=$(mysql_cmd 'select 1 from dual' 2>/dev/null) + [ "$ready" = "1" ] && break + sleep "$t" + done + [ "$ready" != "1" ] && echo "Error, DB not available after 15 seconds!" +} stop_mythbackend () { $SV stop mythbackend ; } start_mythbackend () { $SV start mythbackend ; } diff --git a/abs/core-testing/LinHES-system/bin/mythbackup b/abs/core-testing/LinHES-system/bin/mythbackup index d3cc4e8..d0d028d 100755 --- a/abs/core-testing/LinHES-system/bin/mythbackup +++ b/abs/core-testing/LinHES-system/bin/mythbackup @@ -32,7 +32,7 @@ $MYISAMCHK -f *.MYI start_mysqld # Dumps the $DATABASE database -$MYSQLDUMP -c -u root $DATABASE > $BACKUP_SQL +$MYSQLDUMP -v -c -u root $DATABASE > $BACKUP_SQL shrink $BACKUP_SQL # Now to backup the other files, no fooling around, grab everything in the |