[Autobackupmysql-svnmail] SF.net SVN: autobackupmysql:[3] autobackupmysql.sh
Brought to you by:
infyquest
|
From: <inf...@us...> - 2009-12-18 11:40:18
|
Revision: 3
http://autobackupmysql.svn.sourceforge.net/autobackupmysql/?rev=3&view=rev
Author: infyquest
Date: 2009-12-18 11:40:11 +0000 (Fri, 18 Dec 2009)
Log Message:
-----------
Add support for configuration files
Modified Paths:
--------------
autobackupmysql.sh
Modified: autobackupmysql.sh
===================================================================
--- autobackupmysql.sh 2009-12-09 10:56:50 UTC (rev 2)
+++ autobackupmysql.sh 2009-12-18 11:40:11 UTC (rev 3)
@@ -27,6 +27,12 @@
# (Detailed instructions below variables)
#=====================================================================
+# Check configuration files
+if [ -f "autobackupmysql.conf" ] ; then
+ source "autobackupmysql.conf"
+elif [ - f "/etc/autobackupmysql.conf" ] ; then
+ source "/etc/autobackupmysql.conf"
+else
# Username to access the MySQL server e.g. dbuser
USERNAME='dbuser'
@@ -102,6 +108,7 @@
# Command run after backups (uncomment to use)
#POSTBACKUP="/etc/mysql-backup-post"
+fi
#=====================================================================
# Options documantation
@@ -254,6 +261,8 @@
# Change Log
#=====================================================================
#
+# VER 1.2 - (2009-12-18)
+# Add support for configuration files
# VER 1.1 - (2009-12-10)
# Fix for missing suffix
# Some text changes
@@ -278,7 +287,7 @@
DOM=`date +%d` # Date of the Month e.g. 27
M=`date +%B` # Month e.g January
W=`date +%V` # Week Number e.g 37
-VER=1.1 # Version Number
+VER=1.2 # Version Number
LOGFILE=$BACKUPDIR/$DBHOST-`date +%N`.log # Logfile Name
LOGERR=$BACKUPDIR/ERRORS_$DBHOST-`date +%N`.log # Logfile Name
BACKUPFILES=""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|