Thinking about encryption
This commit is contained in:
parent
ec0c4b8cde
commit
22119a8b46
2 changed files with 5 additions and 2 deletions
BIN
archive.tar.gz
BIN
archive.tar.gz
Binary file not shown.
|
@ -29,12 +29,13 @@ _help()
|
|||
|
||||
_extract_notes()
|
||||
{
|
||||
if [ ! -e "./archive.tar.gz" ];
|
||||
if [ ! -e "./archive.tar.gz.gpg" ];
|
||||
then
|
||||
echo "archive.tar.gz does not exist."
|
||||
echo "archive.tar.gz.gpg does not exist."
|
||||
exit 1
|
||||
fi
|
||||
mkdir tmp
|
||||
#gpg -o archive.tar.gz -d archive.tar.gz.gpg
|
||||
tar xzf archive.tar.gz -C .
|
||||
cp -r ./tmp/wiki $(dirname $VIMWIKIPATH)
|
||||
cp ./tmp/todo.txt $TODOTXTPATH
|
||||
|
@ -58,6 +59,8 @@ _storage_notes()
|
|||
cp $HOME/.config/newsraft/feeds ./tmp/rssfeeds
|
||||
tar czf archive.tar.gz ./tmp/
|
||||
rm -r tmp
|
||||
#gpg -c archive.tar.gz
|
||||
#rm archive.tar.gz
|
||||
echo "Notes successfully stored!"
|
||||
exit 0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue