Backups
Databasement allows you to create on-demand backups of your databases. Backups are processed asynchronously, so you can continue using the application while they run.
Creating a Backup
Manual Backup
- Go to Database Servers
- Find the server you want to backup
- Click Backup
- Select the target database (or leave empty for all databases)
- Choose a storage volume for the backup
- Click Start Backup
The backup will be queued and processed in the background. You can monitor progress on the Snapshots page.
How Backups Work
When you create a backup, Databasement:
- Connects to the database server
- Runs the appropriate dump command (
mysqldumporpg_dump) - Compresses the output with gzip
- Transfers the compressed file to the selected storage volume
- Creates a snapshot record with metadata
Backup Commands
Databasement uses native database tools for reliable backups:
MySQL / MariaDB:
mysqldump --single-transaction --routines --triggers --events database_name
PostgreSQL:
pg_dump --format=plain database_name
Backup Status
Each backup (snapshot) has a status:
| Status | Description |
|---|---|
| Pending | Backup is queued, waiting to be processed |
| In Progress | Backup is currently running |
| Completed | Backup finished successfully |
| Failed | Backup encountered an error |
Monitoring Backups
View all backup jobs on the Snapshots page. You can see:
- Source server and database
- Backup timestamp
- File size
- Storage volume
- Status
Failed Backups
If a backup fails, check:
- Database connectivity: Can Databasement still connect to the server?
- Disk space: Is there enough space on the storage volume?
- Permissions: Does the database user have backup privileges?
- Timeout: Large databases may need more time
Failed backup reasons are logged and visible in the snapshot details.
Best Practices
Before Production Backups
- Test the connection before creating backups
- Verify restore by testing a restore to a development server
- Monitor disk space on your storage volumes
Backup Sizing
Compressed backup sizes vary, but as a rough guide:
- A 1GB database typically compresses to 100-300MB
- Text-heavy data compresses better than binary data
Security Considerations
- Use dedicated backup users with minimal required privileges
- Store backups in secure, encrypted storage when possible
- Regularly test your restore process