<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://developer.vellocetsoftware.com/index.php?action=history&amp;feed=atom&amp;title=ANEURISM_IV%2FBackups_and_updates</id>
	<title>ANEURISM IV/Backups and updates - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://developer.vellocetsoftware.com/index.php?action=history&amp;feed=atom&amp;title=ANEURISM_IV%2FBackups_and_updates"/>
	<link rel="alternate" type="text/html" href="https://developer.vellocetsoftware.com/w/index.php?title=ANEURISM_IV/Backups_and_updates&amp;action=history"/>
	<updated>2026-10-21T19:56:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://developer.vellocetsoftware.com/w/index.php?title=ANEURISM_IV/Backups_and_updates&amp;diff=119&amp;oldid=prev</id>
		<title>DocumentationBot: Version 1</title>
		<link rel="alternate" type="text/html" href="https://developer.vellocetsoftware.com/w/index.php?title=ANEURISM_IV/Backups_and_updates&amp;diff=119&amp;oldid=prev"/>
		<updated>2026-10-01T04:13:05Z</updated>

		<summary type="html">&lt;p&gt;Version 1&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ANEURISMNav}}&lt;br /&gt;
&lt;br /&gt;
Keep the server installation separate from its data directory. SteamCMD can then replace game files without replacing your saved world or staff assignments.&lt;br /&gt;
&lt;br /&gt;
These commands use the paths and user service from [[ANEURISM IV/Dedicated servers]]. Run them as the same Linux user that runs the server.&lt;br /&gt;
&lt;br /&gt;
== Back up a world ==&lt;br /&gt;
&lt;br /&gt;
Tell players the server is closing, then stop it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
systemctl --user stop aniv.service&lt;br /&gt;
systemctl --user show aniv.service -p ActiveState -p SubState -p MainPID&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wait for the stop to succeed. Confirm that the process has exited before copying its data. If you launched it manually, stop that process instead.&lt;br /&gt;
&lt;br /&gt;
Back up the whole data directory and startup environment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
umask 077&lt;br /&gt;
mkdir -p &amp;quot;$HOME/aneurism/backups&amp;quot;&lt;br /&gt;
ANIV_BACKUP_NAME=&amp;quot;community-$(date -u +%Y%m%dT%H%M%SZ).tar.gz&amp;quot;&lt;br /&gt;
tar -czf &amp;quot;$HOME/aneurism/backups/$ANIV_BACKUP_NAME&amp;quot; \&lt;br /&gt;
  -C &amp;quot;$HOME/aneurism&amp;quot; data server.env&lt;br /&gt;
tar -tzf &amp;quot;$HOME/aneurism/backups/$ANIV_BACKUP_NAME&amp;quot;&lt;br /&gt;
systemctl --user start aniv.service&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Store another copy away from the server machine. Record the game version, selected Steam branch, and map with each backup. The archive contains player and moderation data, plus the server password if one was set in &amp;lt;code&amp;gt;server.env&amp;lt;/code&amp;gt;; keep it private.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;aniv.db&amp;lt;/code&amp;gt; is a SQLite database. Copying only that file while the server is running can miss writes or produce an inconsistent backup. Stop the server and preserve the whole directory, including any database journal files.&lt;br /&gt;
&lt;br /&gt;
== Restore a backup ==&lt;br /&gt;
&lt;br /&gt;
# Stop the server and confirm that its process has exited.&lt;br /&gt;
# Keep a backup of the current data, even if you&amp;#039;re restoring because something went wrong.&lt;br /&gt;
# Extract the chosen archive into a new, empty directory. Inspect its contents before replacing anything.&lt;br /&gt;
# Move the current data directory aside and put the restored &amp;lt;code&amp;gt;data&amp;lt;/code&amp;gt; directory at the path in &amp;lt;code&amp;gt;ANIV_DATA_ROOT&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Review the restored &amp;lt;code&amp;gt;server.env&amp;lt;/code&amp;gt;. Use the original owner and map, and correct the absolute data path if this is another machine.&lt;br /&gt;
# Start with a compatible game build. Join and check the world, player progress, ranks, bans, and whitelist.&lt;br /&gt;
&lt;br /&gt;
Keep the previous data directory until you&amp;#039;ve checked the restore. Don&amp;#039;t merge two saved worlds or open the same database from two processes.&lt;br /&gt;
&lt;br /&gt;
== Update the server ==&lt;br /&gt;
&lt;br /&gt;
Stop and back up the server first. Then run SteamCMD against its existing installation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
steamcmd +force_install_dir &amp;quot;$HOME/aneurism/server&amp;quot; \&lt;br /&gt;
  +login anonymous +app_update 2832030 -beta preview validate +quit&lt;br /&gt;
systemctl --user start aniv.service&lt;br /&gt;
journalctl --user -u aniv.service -n 100 --no-pager&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the same Steam login method you used for installation. The command above selects &amp;lt;code&amp;gt;preview&amp;lt;/code&amp;gt;. To return to Steam&amp;#039;s default branch, use &amp;lt;code&amp;gt;-beta public&amp;lt;/code&amp;gt;. Check that the branch you&amp;#039;re selecting supports this saved world before changing it.&lt;br /&gt;
&lt;br /&gt;
Players need a compatible game version after the update. If the server won&amp;#039;t start, preserve the failed-start log and the pre-update backup. Restoring an older executable alone doesn&amp;#039;t undo database changes.&lt;br /&gt;
&lt;br /&gt;
== Change the map or start a fresh world ==&lt;br /&gt;
&lt;br /&gt;
Stop the server, choose a new empty directory for &amp;lt;code&amp;gt;ANIV_DATA_ROOT&amp;lt;/code&amp;gt;, and set &amp;lt;code&amp;gt;ANIV_MAP&amp;lt;/code&amp;gt; before starting again. Keep the old directory if you want to return to that world. A new data directory also creates new administration data, seeded with the configured owner.&lt;br /&gt;
&lt;br /&gt;
A gameplay world wipe has a different scope: it clears world and player progress but preserves the existing owner, ranks, bans, whitelist, and reserved-slot grants. Don&amp;#039;t delete &amp;lt;code&amp;gt;aniv.db&amp;lt;/code&amp;gt; to perform that kind of wipe.&lt;br /&gt;
&lt;br /&gt;
Version 20 has no automatic importer for old databases or rank and ban files. Keep those backups separate and begin with a fresh data directory when moving from an older hosting setup that uses a different schema.&lt;br /&gt;
&lt;br /&gt;
[[Category:ANEURISM IV]]&lt;/div&gt;</summary>
		<author><name>DocumentationBot</name></author>
	</entry>
</feed>