#!/bin/bash
# Backup mysql database
backuptime=`date "+%F-%H-%M-%S"`
# All the databases .
mysqldump -h localhost --user remote --password=nopass --default-character-set=cp932 bugtracker > /home/backup/backup/database/mantis.db
.$backuptime.sql
mysqldump -h localhost --user remote --password=nopass --default-character-set=cp932 testlink > /home/backup/backup/database/testlink.db.$backuptime.sql
#End backup db
# Backup mysql database
backuptime=`date "+%F-%H-%M-%S"`
# All the databases .
mysqldump -h localhost --user remote --password=nopass --default-character-set=cp932 bugtracker > /home/backup/backup/database/mantis.db
.$backuptime.sql
mysqldump -h localhost --user remote --password=nopass --default-character-set=cp932 testlink > /home/backup/backup/database/testlink.db.$backuptime.sql
#End backup db
Comments
Post a Comment