https://www.rabbibob.com/index.php?title=Minetest:Backup&feed=atom&action=historyMinetest:Backup - Revision history2024-03-28T12:01:57ZRevision history for this page on the wikiMediaWiki 1.39.5https://www.rabbibob.com/index.php?title=Minetest:Backup&diff=1181&oldid=prevRabbi Bob at 23:18, 1 March 20122012-03-01T23:18:03Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 23:18, 1 March 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Backing up your world is highly recommended, especially when experimenting with [[Mods]].</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Backing up your world is highly recommended, especially when experimenting with [[<ins style="font-weight: bold; text-decoration: none;">Minetest:</ins>Mods]].</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Linux=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Linux=</div></td></tr>
</table>Rabbi Bobhttps://www.rabbibob.com/index.php?title=Minetest:Backup&diff=1170&oldid=prevRabbi Bob: Created page with "Backing up your world is highly recommended, especially when experimenting with Mods. =Linux= ==Backup Script== This script is under testing and editing or adding additional..."2012-02-26T22:11:36Z<p>Created page with "Backing up your world is highly recommended, especially when experimenting with <a href="/index.php?title=Mods&action=edit&redlink=1" class="new" title="Mods (page does not exist)">Mods</a>. =Linux= ==Backup Script== This script is under testing and editing or adding additional..."</p>
<p><b>New page</b></p><div>Backing up your world is highly recommended, especially when experimenting with [[Mods]].<br />
<br />
=Linux=<br />
==Backup Script==<br />
This script is under testing and editing or adding additional script approaches is welcomed. Ideally the script would be run as a cronjob.<br />
<br />
===Script===<br />
<pre><br />
ps -A|grep -i minetest<br />
ps auxwww|grep -i minetest|awk '{print "kill -9 "$2}' |sh<br />
ps -A|grep -1 minetest<br />
NOW=$(date +"%Y%m%d%H%M")<br />
tar -zcf "minetest4_$NOW.tar.gz" minetest4<br />
rm debug.txt<br />
rm nohup.out<br />
nohup ./minetest4/bin/minetestserver &<br />
ps -A|grep -i minetest<br />
</pre><br />
<br />
===Explanation===<br />
# visually show if minetest is running<br />
# find and kill the process<br />
# verify it is not running visually<br />
# get today's date and time<br />
# create a gzip file of the entire minetest server directory<br />
# remove the debug.txt file (housecleaning)<br />
# remove the nohup.out file (housecleaning)<br />
# start the server running again under nohup<br />
# visually show if minetest is running<br />
<br />
[[Category:Minetest]]</div>Rabbi Bob