Restructured to better break up backups and add user control

This commit is contained in:
DarkFeather committed 2017-11-16 17:51:14 -06:00
1 parent 0aa26c388d
commit 652d7c4795
12 files changed
+69 -68

No files matched your search

+14 -5
View File
@@ -2,12 +2,21 @@
export LOGFILE="/var/log/aether-gen.log"
/usr/local/src/Aether/server-backup
export BACKUPDIR="/usr/local/backup"
export BACKUPCMD="rsync -avzl --delete-after";
date >> "$LOGFILE"
chown root:root "$BACKUPDIR"
chmod 0770 "$BACKUPDIR"
for i in `find /usr/local/etc/Aether/backup-entries/ -type f`; do
bash "${i}" &>> "$LOGFILE"
done
date > "$BACKUPDIR"/lastbackup.date
cd /home/aether
date >> $LOGFILE
echo Creating and compressing archive...
tar cvf aether.tar /usr/local/backup
gzip -f aether.tar
@@ -18,5 +27,5 @@ rm aether.tar.gz
echo Created aether archive.
date >> $LOGFILE
echo >> $LOGFILE
date >> "$LOGFILE"
echo >> "$LOGFILE"