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

#mysql - #database - #programming - #junco - #grebe

From JR's : articles
34 words - 316 chars
created on
updated on - #
source - versions

Related articles
Creating new blog tool based upon Junco and Kinglet - Jun 18, 2014
Old Lucas County registered sex offenders maps mashup info - Oct 29, 2013
Probably my favorite Web apps to use and create - Jan 15, 2014
The Guardian and Comments - April 2016 - Apr 12, 2016
Possible to-do item - Author Marks - Jul 30, 2013
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 14, 2024 - 2:15 a.m. EST