Fixes to control backup size and back up the right things. Backups encrypted and labeled as such.

This commit is contained in:
dev committed 2016-08-10 12:38:26 -05:00
1 parent 7b7849d98f
commit 0b7c6305e1
3 files changed
+33 -33

No files matched your search

+3 -14
View File
@@ -2,25 +2,14 @@
export LOGFILE="/var/log/aether-gen.log"
/usr/local/src/Aether/server-backup
cd /home/aether
date >> $LOGFILE
mkdir -p target
# Get a list of what's in Yggdrasil, in case we need to go hunting.
echo "Getting file list..."
find /srv/yggdrasil/ > target/Yggdrasil_file_list.txt
# Copy the nonrecoverable data to the target location.
rsync -azl --delete-after /usr/local/src/ target/src/
rsync -azl --delete-after /usr/local/etc/ target/etc/
rsync -azl --delete-after /usr/local/backup target/
date > target/last-updated
echo Creating and compressing archive...
tar cvf aether.tar target
tar cvf aether.tar /usr/local/backup
gzip -f aether.tar
echo Encrypting archive