Author Archives: awanggadna

My MySQL database backup (dump) shell script

By | 7th April 2015

#!/bin/sh #—————————————————- # a simple mysql database backup script. # version 2, updated March 26, 2011. # copyright 2011 alvin alexander, http://devdaily.com #—————————————————- # This work is licensed under a Creative Commons # Attribution-ShareAlike 3.0 Unported License; # see http://creativecommons.org/licenses/by-sa/3.0/ # for more information. #—————————————————- # (1) set up all the mysqldump variables FILE=minime.sql.`date +”%Y%m%d”`… Read More »

backup sh tar.gz

By | 7th April 2015

#!/bin/bash #Purpose = Backup of Important Data #Created on 17-1-2012 #Author = Hafiz Haider #Version 1.0 #START TIME=`date +%b-%d-%y` # This Command will add date in Backup File Name. FILENAME=backup-$TIME.tar.gz # Here i define Backup file name format. SRCDIR=/var/log/ # Location of Important Data Directory (Source of backup). DESDIR=/home/harian # Destination of backup file. DESDIR1=/home… Read More »