Need to update this to indicate the new encryption

This commit is contained in:
dev 2016-08-08 14:09:09 -05:00
parent a3ffa9dc31
commit 7b7849d98f
1 changed files with 1 additions and 4 deletions

View File

@ -10,11 +10,8 @@ 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"
export TARGET="aether-"$(date +%F)".enc"
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