You're viewing old version number 1. - Current version
Db-dump.sh
Used to dump the contents in database tables for backup purposes.
#!/bin/bash
dumpdir=/home/myaccount/dbdump
dt=`date +%d-%b-%Y`
dumpfile=$dumpdir/myaccount-dbdump-$dt.sql
/usr/bin/mysqldump --add-drop-table -uDBUSER -pDBPWD DBNAME > $dumpfile
gzip $dumpfile
From JR's : articles
28 words - 289 chars
created on
- #
source
- versions
Related articles
Db-dump.sh - Sep 24, 2014