etherdump/cron.sh

15 lines
534 B
Bash
Raw Normal View History

date >> cron.log
echo "cronjob started!" >> cron.log
2019-05-08 12:42:47 +02:00
echo "" >> cron.log
# This will dump all the pads with a __PUBLISH__ tag into a folder "publish" as meta.json, txt, html and dhtml
/usr/local/bin/etherdump pull --all --meta --text --dhtml --publish __PUBLISH__ --publish-opt-in --pub publish --fix-names --no-raw-ext
# This will make an index for the dump
/usr/local/bin/etherdump index input \
publish/*.meta.json \
--order lastedited \
--templatepath templates \
2019-05-08 12:43:42 +02:00
--title "Varia notes and dispatches" \
--output index.html