Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert@TryingToScale.com tryingtoscale

View GitHub Profile
@tryingtoscale
tryingtoscale / Robs_WWW_Backup.sh
Last active May 21, 2022
Backup Web Project to Users Home folder www_backups
View Robs_WWW_Backup.sh
#!/bin/bash
if [ -z $1 ]; then
echo "please: Enter Web-Site Project folder name"
exit 1
fi
WWW_FOLDER_PATH=/var/www/
BACKUP_TO=~/www_backups
BACKUP_JOB_NAME=Backup_for_WWW_Project_
DAYS_TO_KEEP=65