Backup and restore
The platform runs automated daily MongoDB backups with manual restore capability.
Backup configuration
Platform Settings → Backup Configuration
| Setting | Description | Default |
|---|---|---|
| Enable Backup | Turn automated backups on/off | Off |
| Backup Folder | Local path for backup storage | C:\ICP\Backups |
| Backup Interval | Hours between backups | 24 |
| Retention Days | Days to keep completed backups | 30 |
| mongodump Path | Path to mongodump executable | Auto-detect |
| mongorestore Path | Path to mongorestore executable | Auto-detect |
Backup process
Automated (daily)
- Schedule - Runs at configured interval
- Validate - Check folder, executables, config
- Create folder -
YYYY-MM-DD_HHmmsstimestamped - Run mongodump -
--url {conn}/{db} --out {path} - Compute size - Record backup size in bytes
- Apply retention - Delete old completed backups
- Audit - Log “Backup Completed” or “Backup Failed”
Manual backup
From Backup Manager page:
- Click “Run Backup”
- Monitor progress in real-time
- View result when complete
Backup statuses
| Status | Description |
|---|---|
| Pending | Queued, waiting to start |
| Running | mongodump in progress |
| Completed | Success, ready for restore |
| Failed | Error recorded, check logs |
Restore process
Prerequisites
- SuperAdmin role required
- Backup status = “Completed”
- mongorestore executable available
- Backup folder exists
Steps
- Select backup from history
- Click “Restore”
- Confirm in dialog (destructive!)
- Runs
mongorestore --url {conn}/{db} --drop {dumpPath} - Audit “Restore Completed”
⚠️ Warning: Restore drops the database and replaces all data. Cannot be undone.
Retention policy
- Completed backups older than
BackupRetentionDaysare deleted - Failed backups are NOT auto-deleted (for debugging)
- Manual delete available for any backup
Monitoring
Backup Manager page
- Backup folder path
- Database name
- Backup size
- Status (with color badge)
- Started / Completed timestamps
- Duration
- Actions: Run, Restore (SuperAdmin), Delete
Alerts
- Failed backups logged to audit
- Worker dashboard shows last backup status
- Operations dashboard includes backup health
Requirements
- mongodump/mongorestore installed (MongoDB Database Tools)
- Writable backup folder with sufficient space
- MongoDB connection configured in platform settings
- Disk space for multiple backups
Disaster recovery
- Install fresh platform
- Configure same database connection
- Copy backup folder to new server
- Run restore from Backup Manager
- Verify all data restored
- Restart services