Add dates

This commit is contained in:
den 2019-08-16 01:55:03 +00:00
parent 1ac89ac09c
commit cc93aca2ec
1 changed files with 5 additions and 3 deletions

8
backup
View File

@ -7,9 +7,11 @@ echo 'Starting backup tool...'
mkdir backups
cd backups
zip -r backup-home.zip /home/*
zip -r backup-www.zip /var/www/*
zip -r backup-etc.zip /etc/*
date=$(date +%Y%m%d%H%M%S)
zip -r backup-home-$date.zip /home/*
zip -r backup-www-$date.zip /var/www/*
zip -r backup-etc-$date.zip /etc/*
# implement encryption here