Difference between revisions of "Mediawiki backup"
From Tech
Jump to navigationJump to search (Created page with "Backing up the contents of this wiki using: (see also [https://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki mediawiki backing up a wiki]) D=`date --iso-8601` mysqldump -...") |
|||
Line 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 - |
+ | sudo tar -czf backup-techwiki-files-$D.tar.gz /var/lib/mediawiki/ /etc/mediawiki* |
Revision as of 10:32, 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-techwiki-files-$D.tar.gz /var/lib/mediawiki/ /etc/mediawiki*