diff --git a/aether.bash b/aether.bash index 9779fcb..4eaf753 100755 --- a/aether.bash +++ b/aether.bash @@ -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