Skip to content
Platform status
Servergilde
From Plus · 7.99 € per month

Backups

The agent, a small program on your server, backs up the databases of your server every day, encrypts them on your server and stores them there. On request a copy goes to a second location: our storage or your own storage. You start a restore in the panel.

Choose Plus Restore
Miniature: a treasury with chests, a figure carries a chest inside

What is backed up

The databases that change during operation are backed up. Server files and clients are yours and are not backed up.

ContentBackupNote
Game databasesalwaysthe agent detects them from the configuration of the cores. In Metin2, for example, account, player and common.
Log databaseoptionaloften large and not needed to run the server, so it is off by default
Other databasesoptionalyou add them in the configuration of the agent
Configuration folderplannednot implemented yet
Server files, quests, clientnoyou back these files up yourself, we do not store game files

Schedule and storage

  • Scheduledaily at 04:30 server time, adjustable. Also before every module installation through the agent and at the push of a button in the panel.
  • Methodmariadb-dump or mysqldump per database, then gzip. With MyISAM tables, as is usual in Metin2, the tables are locked briefly during the dump so that the state is consistent.
  • RightsThe database user in [datenbank] needs SELECT, LOCK TABLES, SHOW VIEW, TRIGGER and EVENT on the game databases. Without TRIGGER the backup aborts if a table has a trigger (in Metin2 often player). To restore, it also needs write rights, e.g. through schreib_nutzer.
  • EncryptionAES-256 on your server. The agent creates the key file when it is first needed, and it stays on your server.
  • ChecksumSHA-256 for every file
  • Storagein the folder /var/backups/serverwerk on your server, readable by root only
  • Second locationeither our storage or an SFTP server or S3-compatible object storage that you provide yourself. After the transfer the size is checked.
  • Our storagefrom agent 0.5.0 with ziel = serverwerk: an encrypted copy in our object storage in Germany, Plus 20 GB, Pro 100 GB per server. Encrypted files only, the key is held only by you and your server. Download in the panel, fetch back to a new server if needed.
  • CheckAlert if the last backup is older than 26 hours or a database is less than half the size it had in the previous backup. The alert arrives by Discord and by email.

Retention

The default is 7 days, adjustable. You can also keep the newest backup of every week and every month. The newest backup is always kept. Deletions also apply in the second location.

Keep the key safe: After setup, store a copy of the key file in a safe place. Without it a backup cannot be decrypted on a new server, not even by us.

Restore

Restoring has to be allowed in the allow list on your server (sicherung_zurueck). It works from the files that are on your server. You first fetch a backup from our storage back to the server with one click. The steps in the panel:

  1. Test, if you want. The agent restores the backup into a separate test database, counts the rows of every table and deletes the test database again. The game keeps running and the real database stays untouched. Afterwards you see for each table how many rows are in the backup and how many are in the database now.
  2. Choose a backup. You see date, size and the databases it contains.
  3. Choose the scope. The whole backup or a single database.
  4. Confirm. To confirm, you enter the name of the server.
  5. Maintenance. The agent checks the checksums, announces the maintenance in the game, stops the services and backs up the current state.
  6. Restore. The agent restores the backup and then starts the services. If the restore fails, it restores the state it just backed up.

Files

The files are on your server. With our storage you can also download them in the panel, encrypted the same way as on the server. The agent shows the list on the server:

# serverwerk_agent.py sicherung liste

Decrypt by hand (Linux, on FreeBSD the key file is under /var/db/serverwerk/):

# openssl enc -aes-256-cbc -pbkdf2 -iter 200000 -md sha256 -d \ -in FILE.sql.gz.enc -pass file:/var/lib/serverwerk/sicherung.key | gunzip > FILE.sql

Not implemented yet

These features are planned and not available today.

FeatureStatus
Backup of configuration foldersplanned

Questions about backups

Are backups included in the Free or Basic plan?
No, backups belong to Plus and Pro. In every plan the server check still shows whether you have your own backups, how old they are and where they are stored.
Where are the backups stored?
On your server in the folder /var/backups/serverwerk, readable by root only. Optionally a copy goes to a second location: to our storage (Plus 20 GB, Pro 100 GB per server, encrypted files only) or to an SFTP server or S3-compatible object storage that you provide yourself.
Can you read my backups?
No. The files are encrypted with AES-256, and the key file stays on your server only. Our storage accepts encrypted backups only. So keep a copy of the key in a safe place.
Can I download a backup in the panel?
Yes, if you use our storage. The files are then listed in the panel under Sicherungen (Backups) for download, encrypted. Without it they exist only on your server, and the command serverwerk_agent.py sicherung liste shows the list. How to decrypt a file by hand is explained on this page.
How do I notice that a backup is missing or broken?
You get an alert if the last backup is older than 26 hours or if a database is less than half the size it had in the previous backup. The alert arrives by Discord and by email, as you set it in the settings.
How long are backups kept?
7 days by default, adjustable. You can also keep the newest backup of every week and every month.
Is there a test restore?
Yes, from agent 0.5.0. One click on Testen (Test) restores the backup into a separate test database, counts the rows of every table, compares them with the backup and deletes the test database again. The real database stays untouched. Before you restore, you see for each table how many rows are in the backup and how many are in the database now. If the test is approved on the server, it also runs by itself shortly after the daily backup, every 30 days on Plus and every week on Pro.
What happens if my server fails completely?
With our storage you install the agent on the new server, put the key file back in its place and fetch the backup in the panel with Auf den Server holen (Fetch to the server). Then you restore it as usual. This does not work without the key file, not even with our help.

Backups from the Plus plan

7.99 € per server and month, cancel monthly. It includes actions with one click and 20% off modules.