#!/bin/sh
echo "create backup of home folder"
timestamp="$(date +'%b-%d-%y')"
echo "timestamp variable created"
tar -cvpzf /tmp/backup-${timestamp}.tar.gz /home/*
echo "tar created backup-timestamp.tar.gz inside the tmp directory"