Updating to include systemd timers

Better Makefile layout
Improving pytest
This commit is contained in:
DarkFeather committed 2023-07-15 22:34:00 -05:00
1 parent 49f9f6d315
commit 3b49a6c49e
12 files changed
+123 -87

No files matched your search

+11 -13
View File
@@ -1,31 +1,29 @@
#!/bin/bash
export LOGFILE="/var/log/aether-gen.log"
# File: aether-gen.bash
#
# Description: This file generates the backup in an encrypted format.
#
# Package: AniNIX/HelloWorld
# Copyright: WTFPL
#
# Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
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"
bash "${i}"
done
date > "$BACKUPDIR"/lastbackup.date
cd /home/aether
echo Creating and compressing archive...
tar cvf aether.tar /usr/local/backup
gzip -f aether.tar
echo Encrypting archive
openssl enc -aes256 -pass file:/usr/local/etc/Aether/pass.txt -in aether.tar.gz -out aether.enc
rm aether.tar.gz
echo Creating and encrypting archive...
tar cvzf - /usr/local/backup | openssl enc -aes256 -pass file:/usr/local/etc/Aether/pass.txt -in aether.tar.gz -out aether.enc
echo Created aether archive.
date >> "$LOGFILE"
echo >> "$LOGFILE"