-
Backup Script
#!/bin/bash # # Backup Script ############################################ # # Directory to backup. Use spaces to multiple directory backup_files=”/etc” # Directory to save the backup file dest=”/var/backup” # Creating a filename to the backup #day=$(date +%A) day=$(date +%Y_%m_%d) hostname=$(hostname -s) archive_file=”$hostname-$day.tgz” startdate=$(date) # Backup starting message echo “Doing Backup $backup_files to $dest/$archive_file” echo “Starting Backup on”: date…