#!/bin/bash DOKUWIKI=${DOKUWIKI:="$HOME/public_html/dokuwiki"} WIKIPAGE=${WIKIPAGE:="$DOKUWIKI/data/pages"} cd ${WIKIPAGE} && git add . && git add -u && git commit -a -m "Content update `date +'%H:%M %d/%m/%Y %Z'`" && git push origin master # setup a cron job for hourly update: # # 0 * * * * dokuwiki2github.sh