summaryrefslogtreecommitdiffstats
path: root/mysql/mysql_backup.sh
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-27 02:31:46 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2010-04-27 02:51:20 +0200
commitc5d3f3ca23bf4199db7432855c1e960051a445c7 (patch)
tree138e5676ccb4e0240eb2e0adfde278c197cf6d2f /mysql/mysql_backup.sh
parentacf151887dadf21aac804b641187f6f497e30f41 (diff)
downloadbackup-master.tar.gz
backup-master.tar.xz
backup-master.zip
added script to cleanup old backups but keep someHEADmaster
Diffstat (limited to 'mysql/mysql_backup.sh')
-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"