Linux Quick backup of current folder
Submitted by admin on Thu, 04/05/2018 - 11:29Sometimes you just need a fast backup of the current folder...
To adapt to Godaddy shared hosting SSH access, remove the sudo from the tar command.
!/bin/bash
#
# Simple bash script to compress the current folder structure into a
# tar.gz file in a backup folder under the current user home folder.
#
# Tested on various linux systems.# Sets the date variable format for zipped file: MM-dd-yy_hh_mm
NOWDATE=`date +%Y-%m-%d_%H%M`