AnarWiki/README.md

90 lines
2.2 KiB
Markdown

## MediaWiki Overview
https://anarwiki.org/
A successor to the Libertarian Socialist Wiki
https://github.com/AnarDocs/LibSocWiki
## MediaWiki Backup
AnarWiki is backed up nightly
We use a version of this backup script -
https://gist.github.com/svenk/57c3930825b5e9e403a26ab6922d2ac8
CronTab details -
```
30 1 * * * /var/www/html/mediawiki/backupper/cron.sh
```
This (of course) calls /var/www/html/mediawiki/backupper/cron.sh -
```
# changed from original
nice ./backup-private.sh && ./git-backup.sh && ./markdown-backup.sh
```
which calls the following -
* /var/www/html/mediawiki/backupper/backup-private.sh
* /var/www/html/mediawiki/backupper/markdown-export.sh
* /var/www/html/mediawiki/backupper/git-backup.sh
/var/www/html/mediawiki/backupper/markdown-export.sh -
requires this script - https://github.com/outofcontrol/mediawiki-to-gfm
```
# The same as git-backup.sh except this is added at the start -
# Export to markdown
/var/www/html/mediawiki/backupper/convert.php --filename=/var/www/html/mediawiki/backupper/assets/full-dump.xml --output=/var/www/html/mediawiki/backupper/markdown
backup_directory="markdown"
git_work_directory="markdown-git"
```
### Backup Locations
The remote backups are here -
https://github.com/AnarDocs/AnarWiki
Locally the MediaWiki backups are here -
* /var/www/html/mediawiki/backupper/assets
* /var/www/html/mediawiki/backupper/markdown
Mirror - TO BE ADDED
### MediaWiki Restore
If you need to restore a backup on the existing server -
https://www.mediawiki.org/wiki/Manual:Restoring_a_wiki_from_backup
Individual markdown files can be converted to mediawiki format using -
`pandoc -f markdown -t mediawiki INPUT.md -o OUTPUT.wiki`
#### Restoring To A New Server
If you need to restore a backup to a new server -
Follow the instructions here -
https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki
(ideally use the current AnarWiki MediaWiki version - at least initially)
Install the backup scripts as above to continue future backups.
for the rest follow the "In Place Backup" instructions
### Notes
AnarWiki currently uses a Gmail account for contact messages / account confirmations. This should change in the near future.