a3ffa9dc31
Old log from Bazaar was: ------------------------------------------------------------ revno: 6 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Tue 2016-05-17 15:59:19 -0500 message: Fixing Crontab issue on client install Updating server backup scripts to be smarter for user conf. ------------------------------------------------------------ revno: 5 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Fri 2016-05-06 14:26:00 -0500 message: Should be a | not a > ------------------------------------------------------------ revno: 4 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Fri 2016-05-06 14:24:21 -0500 message: Updating Makefile and ignore list ------------------------------------------------------------ revno: 3 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Thu 2016-04-21 15:38:52 -0500 message: Filling out README and adding key creation to Makefile ------------------------------------------------------------ revno: 2 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Thu 2016-04-21 15:30:52 -0500 message: Adding ignore list ------------------------------------------------------------ revno: 1 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Wed 2016-04-20 16:14:34 -0500 message: Initial branch -- NOT committing SSH keys or archive.
34 lines
791 B
Bash
Executable File
34 lines
791 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export LOGFILE="/var/log/aether-gen.log"
|
|
|
|
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
|
|
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 Created aether archive.
|
|
|
|
date >> $LOGFILE
|
|
echo >> $LOGFILE
|