A Simple Backup Bash Shell Script

email me

​#!/bin/sh
​backup_source="/home /var/www/ /etc /root /boot /opt"
​backup_dest="/mnt/myUSB"
​date=`date '+%d-%B-%Y'`
​hostname=$(hostname -s)
​filename="$hostname-$date.tgz"
​echo "Backing Up Your Linux System"
​tar cvpzf $backup_dest/$filename $backup_source
​echo "Backup Finished"