Skip to content
Snippets Groups Projects

Db Profiles

1 file
+ 12
6
Compare changes
  • Side-by-side
  • Inline
+ 12
6
@@ -408,7 +408,7 @@ EOH
# . /usr/local/bin/inc_cronfunctions.sh
j_requireUser "root"
h1 $(date) IML BACKUP :: LOCALDUMP :: $*
h1 $(date) IML BACKUP :: LOCALDUMP
export SERVICENAME=$1
@@ -432,13 +432,18 @@ EOH
if [ "$1" = "ALL" ] || [ -z "$1" ]; then
profiles2run=$(get_database_profiles)
echo AUTO: calling local backup scripts for all active profiles
echo "INFO: Calling local backup scripts for all active profiles"
echo "$profiles2run" | nl
echo
else
profiles2run=$*
echo "INFO: I try to dump the profiles you gave as parameter: $profiles2run"
echo
fi
iProfilesFound=$( grep -c . <<< "$profiles2run" )
test "$iProfilesFound" -eq "0" && echo "INFO: No match - no database dumps needed."
typeset -i iProfileCounter=0
# ----- GO
# PROFILENAME mysql_localhost_13306
# SERVICENAME mysql
@@ -446,9 +451,10 @@ EOH
for PROFILENAME in $profiles2run
do
iProfileCounter+=1
if dbdetect.setProfile "${PROFILENAME}"; then
h2 "START PROFILE [${PROFILENAME}]"
h2 "START PROFILE $iProfileCounter of $iProfilesFound [${PROFILENAME}]"
SERVICENAME=$( dbdetect.getType "$PROFILENAME" )
BACKUP_PARAMS=$( dbdetect.getParams )
@@ -480,7 +486,7 @@ EOH
else
echo "SKIP: profile '$PROFILENAME' "
echo "SKIP: profile $iProfileCounter of $iProfilesFound '$PROFILENAME' "
# see why it is not active
DBD_DEBUG=1; dbdetect.setProfile "${PROFILENAME}"; echo; DBD_DEBUG=0
Loading