Backup & Restore
SalonERP provides a full backup and restore system for your salon data.
Exporting a Backup
- Go to Settings > General
- Scroll to the Backup & Restore section
- Click Export Data
The system downloads a ZIP file containing:
meta.json— backup metadata (version, timestamp, table row counts)data.json— all database tables in FK-safe orderuploads/— all uploaded files (logos, packing slips, etc.)
Importing a Backup
- Go to Settings > General (or use the Setup Wizard for a fresh install)
- Click Import Data
- Select your backup ZIP file (max 500MB)
warning
Importing a backup replaces all existing data. This action cannot be undone. Make sure to export a backup of your current data first.
What's included?
The backup covers all tables:
- Settings, opening hours, VAT rates, locations
- Users, clients, client labels
- Services, products, categories, suppliers
- Bookings, recurring bookings
- POS orders, payments, gift cards
- Inventory transactions, purchase orders, internal consumption
- Campaigns, email templates
- Notifications, audit log
- And more (50+ tables)
Automatic Backup via API
Admins can also trigger backups programmatically:
# Export
curl -H "Authorization: Bearer <token>" \
http://localhost:4000/api/backup/export -o backup.zip
# Import
curl -X POST -H "Authorization: Bearer <token>" \
-F "file=@backup.zip" \
http://localhost:4000/api/backup/import