FiveM Server Backup Guide
Protect your FiveM server data with regular backups.
💾 What to Backup
- MySQL Database: Player data, economy, vehicles
- Resources: Custom scripts and modifications
- Configuration: Server settings and txAdmin config
MySQL Database Backup
Command Line Backup
mysqldump -u username -p database_name > backup.sql
Automated Script
#!/bin/bash DATE=$(date +%Y-%m-%d) mysqldump -u user -ppassword fivem_db > ~/backups/fivem_$DATE.sql
Resources Backup
- Stop server
- Copy resources directory to backup location
- Label with date
- Restart server
Restoring Backups
Database Restore
mysql -u username -p database_name < backup.sql
Resources Restore
- Stop server
- Copy backup resources to server directory
- Start server
Backup Schedule
Recommended:
- Database: Every 4-6 hours
- Resources: Weekly or after changes
- Before Updates: Always backup first
Frequently Asked Questions
Do backups include player inventories?
Yes, if using a database framework like ESX or QBCore.
How large are backups?
Depends on player count. 100MB-5GB typical.
Auto-Backups: Supercraft includes automated daily backups with one-click restore.