Need to update this to indicate the new encryption
This commit is contained in:
parent
a3ffa9dc31
commit
7b7849d98f
@ -10,11 +10,8 @@ cd /home/aether
|
|||||||
if [ $(ls ./aether-*.tar.gz | wc -l) -gt 7 ]; then
|
if [ $(ls ./aether-*.tar.gz | wc -l) -gt 7 ]; then
|
||||||
rm $(ls -tr ./aether-*.tar.gz | head -n 1);
|
rm $(ls -tr ./aether-*.tar.gz | head -n 1);
|
||||||
fi
|
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
|
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
|
echo "Failsafe populated. Today\'s was saved to "$TARGET
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user