Commits

Zhang Huangbin committed 93a0fa8

Typo.

Comments (0)

Files changed (2)

iRedMail/tools/backup_mysql.sh

 # Multiple databases MUST be seperated by SPACE.
 # Your iRedMail server might have below databases:
 # mysql, roundcubemail, policyd (or postfixpolicyd), amavisd, iredadmin
-export DATABASES='mysql roundcubemail policyd amavisd iredadmin'
+export DATABASES='mysql vmail roundcubemail policyd amavisd iredadmin'
 
 # Database character set for ALL databases.
 # Note: Currently, it doesn't support to specify character set for each databases.
     db="${1}"
     output_sql="${BACKUP_DIR}/${db}-${TIMESTAMP}.sql"
 
+    # Check whether database exists or not
     ${CMD_MYSQL} -u"${MYSQL_USER}" -p"${MYSQL_PASSWD}" -e "use ${db}" &>/dev/null
 
     if [ X"$?" == X'0' ]; then

iRedMail/tools/backup_pgsql.sh

 for db in ${DATABASES}; do
     output_sql="${db}-${TIMESTAMP}.sql"
 
-    # Verify db existence
+    # Check whether database exists or not
     su - "${PGSQL_SYS_USER}" -c "psql -d ${db} -c '\q' >/dev/null 2>&1"
 
     # Dump