#!/bin/bash
#Purpose = Backup of Important Data
#Created on 28-02-2016
#Author = Hafiz Haider
#Version 2.0
#START
TIME=`date +%b-%d-%y%s`          # This Command will add date in Backup File Name.
FILENAME=backup-$TIME.tar.gz     # Here i define Backup file name format.
SRCDIR=/mydata                   # Location of Important Data Directory (Source of backup).
DESDIR=/backup                   # Destination of backup file.
SNF=/mydata/mydata.snar          # Snapshot file name and location

tar -cvf $DESDIR/$FILENAME -g $SNF $SRCDIR  #Backup Command
#END 
