ArmaDragonflyClient - Save DB

Save DB

Description

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.

Syntax

[] call dragonfly_db_fnc_saveDB;

Parameters

None. This function does not require any parameters.

Return Value

None. The operation runs synchronously and saves the database immediately.

Examples

Save the database without creating a backup:

[] call dragonfly_db_fnc_saveDB;

Call the save function remotely from a client:

[] remoteExecCall ["dragonfly_db_fnc_saveDB", 2, false];

Notes

  • This function should be called periodically to ensure data persistence
  • Saving is a resource-intensive operation, so it shouldn't be called too frequently
  • Consider saving before mission end or during low-activity periods

Save DB | Test