Menu
 

FiveM Server Backup Guide

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

  1. Stop server
  2. Copy resources directory to backup location
  3. Label with date
  4. Restart server

Restoring Backups

Database Restore

mysql -u username -p database_name < backup.sql

Resources Restore

  1. Stop server
  2. Copy backup resources to server directory
  3. 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.

Top