Created
September 24, 2013 10:40
-
-
Save daviddoran/6683035 to your computer and use it in GitHub Desktop.
Easily back up the content of a dokuwiki site to a git repository each hour. Only commits when there are changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /var/www/dokuwiki/data && git add . && git add -u && git commit -a -m "Content update `date +'%H:%M %d/%m/%Y %Z'`" && git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# m h dom mon dow command | |
0 * * * * /path/to/backup-dokuwiki.sh >> /var/log/backup-dokuwiki.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment