Backup Dir Shall


#!/bin/bash
# Version Asep Saepuloh
cd /home/
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=tes                  # Location of Important Data Directory (Source of backup).
DESDIR=/home/backup_aplication          # Destination of backup file.
tar -czvf $DESDIR/$FILENAME $SRCDIR

#END

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s