-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
13 lines (12 loc) · 854 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
SHELL := bash
dump:
@if [[ -f ../mediawiki/maintenance/dumpBackup.php ]]; then\
php ../mediawiki/maintenance/dumpBackup.php --full --filter=namespace:0,108 > data/dumps/main_full.xml;\
php ../mediawiki/maintenance/dumpBackup.php --full --filter=namespace:3000 > data/dumps/wpd_full.xml;\
php ../mediawiki/maintenance/dumpBackup.php --current --filter=namespace:0 > data/dumps/main.xml;\
php ../mediawiki/maintenance/dumpBackup.php --current --filter=namespace:3000 > data/dumps/wpd.xml;\
php ../mediawiki/maintenance/dumpBackup.php --current --filter=namespace:4 > data/dumps/project.xml;\
php ../mediawiki/maintenance/dumpBackup.php --current --filter=namespace:2,200 > data/dumps/user.xml;\
php ../mediawiki/maintenance/dumpBackup.php --current --filter=namespace:3020 > data/dumps/meta.xml;\
app/export_users > data/users.json;\
fi