Difference between revisions of "Mediawiki backup"
From Tech
Jump to navigationJump to searchLine 3: | Line 3: | ||
D=`date --iso-8601` |
D=`date --iso-8601` |
||
mysqldump -u wikiuser -p --default-character-set=utf8 wikitech |gzip > backup-wikitech-sql-$D.sql.gz |
mysqldump -u wikiuser -p --default-character-set=utf8 wikitech |gzip > backup-wikitech-sql-$D.sql.gz |
||
− | sudo tar -czf backup- |
+ | sudo tar -czf backup-wikitech-files-$D.tar.gz /var/lib/mediawiki/ /etc/mediawiki* |
Revision as of 10:33, 18 August 2020
Backing up the contents of this wiki using: (see also mediawiki backing up a wiki)
D=`date --iso-8601` mysqldump -u wikiuser -p --default-character-set=utf8 wikitech |gzip > backup-wikitech-sql-$D.sql.gz sudo tar -czf backup-wikitech-files-$D.tar.gz /var/lib/mediawiki/ /etc/mediawiki*