Backups & Restore
RUSEON Core manages its own state (cameras, users, configurations) in an embedded BadgerDB instance located in /app/data. The video archive (/app/recordings) is managed separately.
Automated Backups
A background worker (internal backup worker) automatically generates BadgerDB .bak dumps into the /app/backups directory periodically. The worker also handles retention cleanup, automatically removing old backups to prevent disk exhaustion.
REST API Imports and Exports
You can export and import the database state in JSON format via the REST API, making it easy to migrate configurations between servers.
- Export State (JSON):
GET /api/system/backup/export - Import State (JSON):
POST /api/system/backup/import
Restoring from a .bak file
To restore from a physical .bak file:
- Stop the RUSEON Core service.
- Move the existing
/app/datafolder to a safe location. - Use Badger CLI or an internal recovery tool (if provided by the
ruseon-clibinary) to restore the.bakfile into/app/data. - Start the service.