Inventario SUD includes a built-in backup feature that lets an Obispo download a complete SQL dump of the database directly from the browser. The file containsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ChrisCore1/inventario_sud/llms.txt
Use this file to discover all available pages before exploring further.
INSERT statements for every record in the system and can be used to restore data to a fresh database instance or to keep an offline archive of your congregation’s inventory history.
Download a backup
Sign in as Obispo
You must be signed in with an account that has the Obispo role. The backup endpoint returns
403 Acceso denegado for all other roles.Click the backup button
In the Mantenimiento de base de datos section, click the download or backup button. The browser sends a
GET request to /api/backup.Tables included in the backup
The backup exports every table in the following order to satisfy foreign key dependencies:| Table | Contents |
|---|---|
Rol | Role definitions (Obispo and standard user role) |
Categoria | Asset and consumable category types |
Ubicacion | Physical location names |
Usuario | User accounts including password hashes and biometric vectors |
Articulo | Fixed asset records including soft-delete flag |
Consumible | Consumable records with quantities and minimum stock levels |
Movimiento_Prestamos | Loan records including cancelled (soft-deleted) entries |
Auditoria_log | Complete audit log history |
INSERT ... ON CONFLICT DO NOTHING statements.
Because every
INSERT uses ON CONFLICT DO NOTHING, re-importing the backup into an existing database is safe — rows that already exist are skipped rather than overwritten or duplicated. This makes the file suitable for additive restores, but it will not overwrite records that have been modified since the backup was taken.Backup file format
The generated file opens with a header comment block followed by groupedINSERT statements, one per row. The format looks like this:
