summaryrefslogtreecommitdiffstats
path: root/mysql/mysql_backup.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmysql/mysql_backup.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/mysql/mysql_backup.sh b/mysql/mysql_backup.sh
index 2110b14..b48f3f6 100755
--- a/mysql/mysql_backup.sh
+++ b/mysql/mysql_backup.sh
@@ -2,6 +2,8 @@
# this script will backup all mysql databases from the server to a ftp
# server
+source $(dirname $0)/ftp.settings
+
# mysql server informations
MYSQL_SERVER="localhost"
MYSQL_USER="backup"
@@ -11,15 +13,6 @@ MYSQL_PASSWORD="password"
# TODO
#MYSQL_EXCLUDE_DB=""
-# ftp server data
-FTP_SERVER="backup"
-FTP_USER="ftp"
-FTP_PASSWORD="password"
-
-# target directory on the ftp (if no / at the beginning, relativ to
-# the first directory after login)
-FTP_TARGET="mysql"
-
# temporary directory
TMP_DIRECTORY="/tmp"