<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save" xml:lang="en-US">
<title>save</title>
<indexterm><primary>save</primary></indexterm>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md40">
<title>autotoc_md40</title>
<para>title: ArmaDragonflyClient - Save DB icon: mdi:file-text-outline </para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md41">
<title>excerpt: Save DB to disc.</title></section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md42">
<title>dragonfly_db_fnc_save</title><section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md43">
<title>Description</title>
<para>Saves the entire database to disk storage. This function persists all data (key-value pairs, hash tables, and lists) to a file, allowing it to be retrieved later even after server restart.</para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md44">
<title>Syntax</title>
<para><literallayout><computeroutput>[]&#32;call&#32;dragonfly_db_fnc_save
</computeroutput></literallayout></para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md45">
<title>Parameters</title>
<para>None. The function saves the database without any parameters.</para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md46">
<title>Return Value</title>
<para>None. The operation runs synchronously and saves the database immediately.</para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md47">
<title>Examples</title><section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md48">
<title>Save the database without creating a backup:</title>
<para><literallayout><computeroutput>[]&#32;call&#32;dragonfly_db_fnc_save;
</computeroutput></literallayout></para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md49">
<title>Call the save function remotely from a client:</title>
<para><literallayout><computeroutput>[]&#32;remoteExecCall&#32;[&quot;dragonfly_db_fnc_save&quot;,&#32;2,&#32;false];
</computeroutput></literallayout></para>
</section>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md50">
<title>Notes</title>
<para><itemizedlist>
<listitem>
<para>This function should be called periodically to ensure data persistence</para>
</listitem><listitem>
<para>Saving is a resource-intensive operation, so it shouldn&apos;t be called too frequently</para>
</listitem><listitem>
<para>Consider saving before mission end or during low-activity periods</para>
</listitem></itemizedlist>
</para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md51">
<title>Related Functions</title>
<para>None.</para>
</section>
<section xml:id="_md__g_1_2ids_2dragonfly_2docs_2basic_2save_1autotoc_md52">
<title>Links</title>
<para>None. </para>
</section>
</section>
</section>
