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
The Guardian and Comments - April 2016 - Apr 12, 2016
Possible to-do item - Author Marks - Jul 30, 2013
Junco To-Do List - Jun 27, 2013
Grebe API - Old Page - Jul 18, 2014
Markdown and Multimarkdown testing and documentation - Jun 18, 2014
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 14, 2024 - 12:43 p.m. EST