etherdump/cron.sh

15 lines
524 B
Bash
Raw Normal View History

date >> cron.log
echo "cronjob started!" >> cron.log
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 \
--title "etherdump @ Varia" \
--output index.html