Wiki Backup

From Minetest
Revision as of 08:41, 12 August 2023 by Poetry (talk | contribs) (Created page with "<div class="p44_navbar"> Wiki Top Minetest MT worlds Bucket Game Trolltest </div> <div class="p44_navbar"> [https://minetest.org/ minetest.org] [https://minetest.io minetest.io] [https://git.minetest.io/ 9,000 gits] [https://irc.minetest.org:9000/#/connect CoderChat] [https://edgy1.net/ EdgyNet] </div> <br /> <span id="backup-wiki"></span> == How-To Backup Wiki == To back-up this wiki involves these...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


How-To Backup Wiki

To back-up this wiki involves these steps. Note: This procedure includes a full MariaDB backup. First, log-in as "root" or do "sudo bash". Then run a script similar to the following.

Replace /backupdir with a full path for a non-existent backup directory. Make sure that there is at least 250 MB of disk space free in the associated filesystem.

set -e
mkdir -p /backupdir
cd       /backupdir/
#
DATE6D=240709
mysqldump -A > mtwiki-$DATE6D.sql
mysqldump --system=users > mtwiki-users-$DATE6D.sql
gzip -9 *.sql
#
tar zcf mtwiki-tree-$DATE6D.tgz /var/www/wiki.minetest.org/
tardate *.tgz
ls -l

Note: The "/*" in one line above is needed because the directory above that may be a syslink. This will cause top-level dot-files to be skipped but as of Fall 2023 there weren't any.