Backup & Portability
ByteBox supports both API-level export/import and raw database backups. Use both for robust protection.
Option 1: API JSON Export
Section titled “Option 1: API JSON Export”Use the UI Export feature or call:
GET /api/export
Restore with:
POST /api/import
Best For
Section titled “Best For”- Shareable lightweight backup
- Moving core records between environments
- Human-readable snapshots
Known Limitation
Section titled “Known Limitation”Current export payload excludes some rich fields (imageData, fileData, starred), so this is not a full-fidelity archive.
Option 2: SQLite File Snapshot (Recommended for Full Fidelity)
Section titled “Option 2: SQLite File Snapshot (Recommended for Full Fidelity)”Backup the DB file itself.
Common locations:
- Local web dev: project
dev.db - Docker:
/data/bytebox.dbinside the volume - Electron packaged app: user data directory (
bytebox.db)
This preserves all rows and columns exactly.
Docker Backup
Section titled “Docker Backup”docker run --rm -v bytebox-data:/data -v $(pwd):/backup alpine \ tar czf /backup/bytebox-backup.tar.gz /dataRestore:
docker run --rm -v bytebox-data:/data -v $(pwd):/backup alpine \ tar xzf /backup/bytebox-backup.tar.gz -C /Migration Safety Checklist
Section titled “Migration Safety Checklist”- Back up DB file or volume.
- Apply migrations (
prisma migrate deploy). - Start app and hit
/api/cards. - Validate representative cards (including image/doc cards).
- Keep one rollback snapshot until verification is complete.