Project

General

Profile

Backup Strategies on cwyrnd3-server » backup_redmine_db.sh

chin-yeh, 03/12/2012 01:36 PM

 
#!/bin/bash
#
#########################################################
# Backup Redmine database.
#
#########################################################

redmine_dir=/opt/redmine-1.0.0-0
backup_dir=/opt/db_bak

redmine_db=bitnami_redmine
redmine_db_user=bitnami
redmine_db_password=7ddb8931e3

${redmine_dir}/mysql/bin/mysqldump -u ${redmine_db_user} -p${redmine_db_password} ${redmine_db} > ${backup_dir}/redmine_backup.sql


(2-2/2)