home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add basic microblog.pub setup.
[config]
/
all_new_2018
/
user_files
/
encrypter.sh
diff --git
a/all_new_2018/user_files/encrypter.sh
b/all_new_2018/user_files/encrypter.sh
old mode 100644
(file)
new mode 100755
(executable)
index
6a35954
..
e2ebd44
--- a/
all_new_2018/user_files/encrypter.sh
+++ b/
all_new_2018/user_files/encrypter.sh
@@
-1,4
+1,9
@@
#!/bin/sh
#!/bin/sh
+# Encrypt dated weechatlog files older than one day to GPG target defined in
+# ~/.encrypt_target
set -e
gpg_key=$(cat ~/.encrypt_target)
set -e
gpg_key=$(cat ~/.encrypt_target)
+cd ~/weechatlogs/irc/
+find . -regextype posix-egrep -regex '^.*/.*/.*\.[0-9]{4}-[0-9]{2}-[0-9]{2}\.weechatlog$' -type f -mtime +1 -exec gpg --recipient "${gpg_key}" --trust-model always --encrypt {} \; -exec rm {} \;
+