Created
March 22, 2015 23:17
-
-
Save WardCunningham/8212f70c5c09643f2ce1 to your computer and use it in GitHub Desktop.
rotating backup of federated wiki site
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
# save a daily backup with a retention of one week | |
# usage: sh mkbackup.sh forage.ward.fed.wiki.org | |
site=$1 | |
day=`date +%a` | |
curl -s http://$site/system/export.json \ | |
> backups/$site.$day.export.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment