vi file.sh
#!/bin/bash
#Specify folders whose backup is to be taken in variables
DATE=`date +"%d_%b_%Y_%H%M"`
f1="/var/www/website.com"
#tar = Tape Archive tool for compression
#Creating same backup tar file for all specified folders
zip -r /var/backup/file/website.com_${DATE}.zip $f1
#Go to the backup folder location
cd /var/backup
#Show the size of the folder
du -sh
Cron
0 2 * * * /var/backup/file.sh