[{"data":1,"prerenderedAt":294},["ShallowReactive",2],{"content-query-gPCfHgUH7H":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":288,"_id":289,"_source":290,"_file":291,"_stem":292,"_extension":293},"/ramdb/generic/save","generic",false,"","ArmaRAMDb - Save DB","mdi:file-text-outline",{"type":11,"children":12,"toc":273},"root",[13,21,28,34,40,53,59,123,129,134,140,147,156,162,171,177,186,192,222,228],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_save",[19],{"type":20,"value":17},"text",{"type":14,"tag":22,"props":23,"children":25},"h2",{"id":24},"description",[26],{"type":20,"value":27},"Description",{"type":14,"tag":29,"props":30,"children":31},"p",{},[32],{"type":20,"value":33},"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.",{"type":14,"tag":22,"props":35,"children":37},{"id":36},"syntax",[38],{"type":20,"value":39},"Syntax",{"type":14,"tag":41,"props":42,"children":47},"pre",{"className":43,"code":45,"language":46,"meta":7},[44],"language-sqf","[_createBackup] call ramdb_db_fnc_save\n","sqf",[48],{"type":14,"tag":49,"props":50,"children":51},"code",{"__ignoreMap":7},[52],{"type":20,"value":45},{"type":14,"tag":22,"props":54,"children":56},{"id":55},"parameters",[57],{"type":20,"value":58},"Parameters",{"type":14,"tag":60,"props":61,"children":62},"table",{},[63,91],{"type":14,"tag":64,"props":65,"children":66},"thead",{},[67],{"type":14,"tag":68,"props":69,"children":70},"tr",{},[71,77,82,86],{"type":14,"tag":72,"props":73,"children":74},"th",{},[75],{"type":20,"value":76},"Parameter",{"type":14,"tag":72,"props":78,"children":79},{},[80],{"type":20,"value":81},"Type",{"type":14,"tag":72,"props":83,"children":84},{},[85],{"type":20,"value":27},{"type":14,"tag":72,"props":87,"children":88},{},[89],{"type":20,"value":90},"Default",{"type":14,"tag":92,"props":93,"children":94},"tbody",{},[95],{"type":14,"tag":68,"props":96,"children":97},{},[98,108,113,118],{"type":14,"tag":99,"props":100,"children":101},"td",{},[102],{"type":14,"tag":49,"props":103,"children":105},{"className":104},[],[106],{"type":20,"value":107},"_createBackup",{"type":14,"tag":99,"props":109,"children":110},{},[111],{"type":20,"value":112},"Boolean",{"type":14,"tag":99,"props":114,"children":115},{},[116],{"type":20,"value":117},"Whether to create a backup of the current state",{"type":14,"tag":99,"props":119,"children":120},{},[121],{"type":20,"value":122},"false",{"type":14,"tag":22,"props":124,"children":126},{"id":125},"return-value",[127],{"type":20,"value":128},"Return Value",{"type":14,"tag":29,"props":130,"children":131},{},[132],{"type":20,"value":133},"None. The operation runs synchronously and saves the database immediately.",{"type":14,"tag":22,"props":135,"children":137},{"id":136},"examples",[138],{"type":20,"value":139},"Examples",{"type":14,"tag":141,"props":142,"children":144},"h3",{"id":143},"save-the-database-without-creating-a-backup",[145],{"type":20,"value":146},"Save the database without creating a backup:",{"type":14,"tag":41,"props":148,"children":151},{"className":149,"code":150,"language":46,"meta":7},[44],"[] call ramdb_db_fnc_save;\n",[152],{"type":14,"tag":49,"props":153,"children":154},{"__ignoreMap":7},[155],{"type":20,"value":150},{"type":14,"tag":141,"props":157,"children":159},{"id":158},"save-the-database-and-create-a-backup",[160],{"type":20,"value":161},"Save the database and create a backup:",{"type":14,"tag":41,"props":163,"children":166},{"className":164,"code":165,"language":46,"meta":7},[44],"[true] call ramdb_db_fnc_save;\n",[167],{"type":14,"tag":49,"props":168,"children":169},{"__ignoreMap":7},[170],{"type":20,"value":165},{"type":14,"tag":141,"props":172,"children":174},{"id":173},"call-the-save-function-remotely-from-a-client",[175],{"type":20,"value":176},"Call the save function remotely from a client:",{"type":14,"tag":41,"props":178,"children":181},{"className":179,"code":180,"language":46,"meta":7},[44],"[] remoteExecCall [\"ramdb_db_fnc_save\", 2, false];\n",[182],{"type":14,"tag":49,"props":183,"children":184},{"__ignoreMap":7},[185],{"type":20,"value":180},{"type":14,"tag":22,"props":187,"children":189},{"id":188},"notes",[190],{"type":20,"value":191},"Notes",{"type":14,"tag":193,"props":194,"children":195},"ul",{},[196,202,207,212,217],{"type":14,"tag":197,"props":198,"children":199},"li",{},[200],{"type":20,"value":201},"This function should be called periodically to ensure data persistence",{"type":14,"tag":197,"props":203,"children":204},{},[205],{"type":20,"value":206},"The backup feature creates a timestamped copy of the database",{"type":14,"tag":197,"props":208,"children":209},{},[210],{"type":20,"value":211},"Automatic backups can be configured in the extension's config file",{"type":14,"tag":197,"props":213,"children":214},{},[215],{"type":20,"value":216},"Saving is a resource-intensive operation, so it shouldn't be called too frequently",{"type":14,"tag":197,"props":218,"children":219},{},[220],{"type":20,"value":221},"Consider saving before mission end or during low-activity periods",{"type":14,"tag":22,"props":223,"children":225},{"id":224},"links",[226],{"type":20,"value":227},"Links",{"type":14,"tag":29,"props":229,"children":230},{},[231,238,240,246,247,253,254,260,261,266,267],{"type":14,"tag":232,"props":233,"children":235},"a",{"href":234},"/ramdb/generic/delete",[236],{"type":20,"value":237},"Delete Key",{"type":20,"value":239}," |\n",{"type":14,"tag":232,"props":241,"children":243},{"href":242},"/ramdb/generic/fetch",[244],{"type":20,"value":245},"Fetch Key",{"type":20,"value":239},{"type":14,"tag":232,"props":248,"children":250},{"href":249},"/ramdb/generic/get",[251],{"type":20,"value":252},"Get Key",{"type":20,"value":239},{"type":14,"tag":232,"props":255,"children":257},{"href":256},"/ramdb/generic/load",[258],{"type":20,"value":259},"Load DB",{"type":20,"value":239},{"type":14,"tag":232,"props":262,"children":263},{"href":4},[264],{"type":20,"value":265},"Save DB",{"type":20,"value":239},{"type":14,"tag":232,"props":268,"children":270},{"href":269},"/ramdb/generic/set",[271],{"type":20,"value":272},"Set Key",{"title":7,"searchDepth":274,"depth":274,"links":275},2,[276,277,278,279,280,286,287],{"id":24,"depth":274,"text":27},{"id":36,"depth":274,"text":39},{"id":55,"depth":274,"text":58},{"id":125,"depth":274,"text":128},{"id":136,"depth":274,"text":139,"children":281},[282,284,285],{"id":143,"depth":283,"text":146},3,{"id":158,"depth":283,"text":161},{"id":173,"depth":283,"text":176},{"id":188,"depth":274,"text":191},{"id":224,"depth":274,"text":227},"markdown","content:ramdb:generic:save.md","content","ramdb/generic/save.md","ramdb/generic/save","md",1742777962297]