LINUX How to make script backup database

#!/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

Comments

Popular posts from this blog

LINUX Move and copy files using SSH

PHP Predefined Variables

Java : Variables Declaring