From 37e89102f700a8187f994098b7944c5ec236bc97 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 6 Jun 2013 02:11:24 +0200 Subject: server config part-1: logging, move backup files and users, mysql, procmail, bogofilter, sasl2, dovecot, sendmail --- server/setup/05-service-settings/backup-mysql.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 server/setup/05-service-settings/backup-mysql.sh (limited to 'server/setup/05-service-settings/backup-mysql.sh') diff --git a/server/setup/05-service-settings/backup-mysql.sh b/server/setup/05-service-settings/backup-mysql.sh new file mode 100644 index 0000000..0490e3b --- /dev/null +++ b/server/setup/05-service-settings/backup-mysql.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +fname="/data/backup/backup-mysqldb-`date +%Y%m%d%H%M%S`.sql" +mysqldump --verbose --user=root --password --all-databases > $fname +echo dumped to $fname + +# 1076 mysql --user=root --password < bugzilla_db_clean.sql + -- cgit v1.2.3