1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 23:43:13 +02:00

Add the db_json module.

This commit is contained in:
Sadie Powell
2025-03-13 11:34:16 +00:00
parent 25c3fd51b7
commit c60477384c
2 changed files with 469 additions and 0 deletions
+52
View File
@@ -1129,6 +1129,58 @@ module
fork = no
}
/*
* db_json
*
* Stores your data in a JSON file. This is currently experimental and has not
* been fully tested so make sure you have db_flatfile loaded as a secondary
* database module if you use this.
*/
#module
{
name = "db_json"
/*
* The file that db_json will write your main database to.
*
* This is relative to your data directory.
*/
database = "anope.json"
/*
* The file that db_json will write third-party databases to.
*
* {name} will be replaced with the name of the module.
*
* This is relative to your data directory.
*/
module_database = "{name}.module.json"
/*
* Sets how many days worth of backups should be kept.
*
* It is recommended that at the very least you keep one backup. Failure to
* do so may result in total data loss if you ever run out of disk space or
* have a power failure during a database write. However, if you're *REALLY*
* sure this won't happen you can disable backups by setting this to 0.
*/
backups = 14
/*
* The directory in which backups are kept.
*
* This is relative to your data directory.
*/
backup_directory = "backups"
/*
* Allows Anope to continue writing the database even if the original can
* not be backed up. This is not recommended as it may result in total data
* loss during the circumstances described above.
*/
#ignore_backup_failure = yes
}
/*
* db_sql and db_sql_live
*