19 lines
294 B
Plaintext
19 lines
294 B
Plaintext
#/bin/bash
|
|
|
|
echo 'Starting backup tool...'
|
|
|
|
# zip all backupfolder
|
|
|
|
mkdir backups
|
|
cd backups
|
|
|
|
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
|
|
|
|
# implement sending files here
|