#!/bin/bash
# backup #
# Semplice Script di BackUp per Directory
# Parametri da impostare
# Backup_Dirs="/dir/source/"
# Backup_Dest_Dir=/dir/back/
# Backup_Date=`date +%b%d%Y` / formato data
#------------------------------------------------------------
Backup_Dirs="/home/server /home/sergio"
Backup_Dest_Dir=/mnt/back/
Backup_Date=`date +%d%m%Y-%I%M`
# Create tar file with todays Month Day Year prepended for easy identification
tar cvzf $Backup_Dest_Dir/server-$Backup_Date.tar.gz $Backup_Dirs > /dev/null
echo "END BACKUP $Backup_Date"
exit 0