Aether/aether.bash
dev a3ffa9dc31 Converting to Git
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.
2016-08-04 11:15:34 -05:00

21 lines
527 B
Bash
Executable File

#!/bin/bash
### DO NOT EDIT THIS FILE ###
if [ ! -f /home/aether/.ssh/aether ]; then
echo "Need to have the aether key to run."
exit
fi
cd /home/aether
if [ $(ls ./aether-*.tar.gz | wc -l) -gt 7 ]; then
rm $(ls -tr ./aether-*.tar.gz | head -n 1);
fi
export TARGET="aether-"$(date +%F)".tar.gz"
printf "get /aether/aether.enc %s\nbye\n" $TARGET | sftp -o IdentityFile=./.ssh/aether aether@aninix.net
rm -Rf target
gunzip -c $TARGET | tar xvf -
echo "Failsafe populated. Today\'s was saved to "$TARGET
exit