The value of a roleplay server lies in the players' data: characters, vehicles, properties, money. If these are lost, the community is lost too. This guide summarises how to make reliable backups and how to test a restore.
This guide is based on the official SQLite backup documentation and the public open.mp project page (checked on 11 November 2026). What your gamemode stores and where depends on your script, so the steps describe general practice.
1. Where is the players' data?
- Your gamemode decides whether data lives in files, an SQLite database or an external database. Identify this first.
- Note every location: the database file, logs, uploaded files and the server configuration.
- Whatever is not on the backup list cannot be restored in an emergency.
2. Backing up an SQLite database safely
- According to the SQLite documentation, copying a live database file with an external tool has drawbacks: writers have to wait for the shared lock, and a power or OS failure can corrupt the copy.
- The official Online Backup API creates a consistent snapshot even from a live database, and the copy is a bit-wise identical copy of the database as it was when copying began.
- The documentation also mentions VACUUM INTO, which creates a vacuumed copy of a live database in a separate file.
3. A backup routine
- Back up the database and scripts on a schedule and keep copies off the server as well.
- Always make a separate backup before a big update or gamemode change.
- Note which backup belongs to which gamemode version.
- Set up a notification for when a backup does not run or ends with an error.
4. A restore test
A backup is not reliable until you have restored it. Once a quarter restore the latest backup to a separate test instance, start the server and check that characters and vehicles are present. If the result differs, the backup list needs to be extended.



