#!/bin/sh
####################################
#
# Backup to local directory
#
####################################
# What to backup.
backup_files="/path/to/your/files"
# Where to backup to.
dest="/path/to/save/backups/to"
# Create archive filename.
# This will be in the format of hostname-forum-Day of Week.zip.
day=$(date +%A)
hostname=$(hostname -s)
archive_file="custom_name-$day.zip"
# Print start status message.
echo "Backing up $backup_files to $dest/$archive_file"
date
echo
# Backup the files using zip.
zip -r -q $dest/$archive_file $backup_files
# Print end status message.
echo
echo "Backup finished"
date