Information: Minecraft Server: I started working on my old Minecraft server called Terona. Join our discord if you want :D Join

Gobiadactyl Panel backups

Copy server backups to a Hetzner Storage Box with Gobia Backups, set schedules and retention, restore them, and back up the panel itself.

Gobiadactyl PanelChecked

On this page

There are two kinds of backup to think about:

  • Server backups: the files of the game servers. Wings makes these on the node. The gobia-backups extension copies them offsite to a Hetzner Storage Box.
  • The panel itself: its database, .env and storage/. Gobiadactyl Panel does not back these up on a schedule; see Back up the panel.

Gobia Backups has not been tested against a real Hetzner Storage Box or a real Wings node. Run one backup and one restore of a disposable server before you rely on it.

How offsite backups work#

  1. A schedule fires, or someone starts a backup.
  2. The panel asks Wings for a backup. Wings builds a tar.gz archive on the node, as for any backup.
  3. The queue worker streams the archive from the node, encrypts it and uploads it to the Storage Box over SFTP. Nothing is stored on the panel's disk on the way.
  4. The upload is checked: the size always, and on port 23 also the SHA-256 that the Storage Box computes itself. Only then is it renamed into place and counted as a backup.
  5. The archive on the node is removed and old backups are pruned according to the retention you set.

Failed backups are tried again: three attempts, ten minutes apart, by default. Every backup is a full backup, so storage use is the number you keep times the archive size.

Encryption is on by default: XChaCha20-Poly1305 with a random 32-byte key per destination. The Storage Box never sees a plain archive.

Gobia Backups has no screen in the panel yet. You set it up with the console commands below.

Before you start#

  • The gobia-backups extension is enabled. On a fresh install, run sudo php artisan p:extension:enable gobia-backups. The updater enables it by itself on installations that update to a release that contains it.
  • A queue worker is running. Uploads run on the low queue.
  • The scheduler runs schedule:run every minute.

Set up a Storage Box destination#

  1. In the Hetzner console, create a sub account for the panel, not the main account. Turn on SSH support (port 23) and, if the panel is not in Hetzner's network, external reachability. Note the host key fingerprint the console shows.
  2. Create a key pair for the panel and add the public key to the sub account's .ssh/authorized_keys, in OpenSSH format:
bash
ssh-keygen -t ed25519 -f gobia-backup-key -N ''
  1. Add the destination. Replace the name, host and user with your own:
bash
cd /var/www/pterodactyl
sudo php artisan gobia-backups:destination:add main u123456-sub1.your-storagebox.de u123456-sub1 --key=/root/gobia-backup-key --default

The command shows the host key the server presents. Compare it with the fingerprint from step 1 before you answer yes.

  1. The command prints the encryption key once. Store it somewhere that is not this server. Without it, the backups cannot be read if the panel's database is lost.

Options of destination:add#

OptionWhat it does
--port=2323 for SSH with checksums (default), or 22 for plain SFTP. On port 22 backups are only verified by size.
--key=<path>Path of the SSH private key file
--base-path=gobia-backupsFolder inside the account
--no-encryptStore archives as they are instead of encrypting them
--fingerprint=<SHA256>Pin this host key fingerprint without asking
--defaultUse this destination for every server

Set a schedule and retention#

Turn scheduled backups on and choose what to keep:

bash
sudo php artisan gobia-backups:policy:set --enable --cron="0 4 * * *" --timezone=UTC --keep-last=7

This backs up every server every day at 04:00 UTC and keeps the last seven backups of each.

OptionWhat it does
--enable, --disableTurn scheduled backups on or off
--cron="<five fields>"When to back up, for example "0 4 * * *"
--timezone=<zone>The timezone the schedule is read in
--keep-last=<n>How many backups to keep
--keep-days=<n>Remove backups older than this many days
--destination=<id>Which destination to use
--mirror=yes or noAlso copy the backups people make themselves in the panel. Those stay on the node as well.
--node=<id>Set the level of one node instead of the global level
--server=<uuid>Set the level of one server instead of the global level

Global, node and server levels#

There is one global level, one per node and one per server. A level stores only what it changes. A server gets the defaults, overridden by the global level, then by its node, then by its own level. For example:

bash
sudo php artisan gobia-backups:policy:set --server=<uuid> --keep-last=30
sudo php artisan gobia-backups:policy:set --node=3 --disable

The first keeps more backups of one important server. The second leaves one node out.

Retention runs only after a new backup was verified, counts only verified backups, and never removes the newest one.

Run a backup now#

bash
sudo php artisan gobia-backups:run <server uuid>
sudo php artisan gobia-backups:run --list

The first starts a backup of one server. The second lists the latest offsite backups. A backup moves through the states queued, archiving, uploading and completed, or ends as failed with its reason.

Restore a backup#

Restoring uses the same mechanism Wings uses for S3 backups: the panel gives Wings a signed link that is valid for fifteen minutes and streams the decrypted archive when Wings fetches it. The target can be any server, so a backup survives the loss of its server and its node.

  • People who can open a server see its backups and their state, but never hosts, paths or other servers.
  • Starting a backup needs the subuser permission ext.gobia-backups.create.
  • Restoring needs ext.gobia-backups.restore and the account password. Five wrong passwords lock restoring for fifteen minutes.
  • Restoring a backup of another server is an administrator action.

Restores are started through the panel's API until the extension has a screen.

Recover without the panel#

If the panel is gone, you can still read a backup on any machine with PHP and the sodium extension. You need extensions/gobia-backups/bin/decrypt.php and extensions/gobia-backups/src/Support/StreamCipher.php from the release, and the encryption key from setup.

bash
sftp -P 23 [email protected]:gobia-backups/<server uuid>/<backup uuid>.tar.gz.gbk .
GOBIA_BACKUP_KEY=<the key printed by destination:add> php decrypt.php <backup uuid>.tar.gz.gbk server.tar.gz

Backups are stored on the box as <base path>/<server uuid>/<backup uuid>.tar.gz.gbk, or .tar.gz when the destination does not encrypt.

Back up the panel#

Gobiadactyl Panel has no scheduled backup of its own database. Back up these yourself, regularly and before any manual change:

WhatWhy
The panel databaseUsers, servers, nodes, settings and backup destinations
.envAPP_KEY, without which encrypted data in the database cannot be read
storage/Uploads, avatars, branding files, template files and logs

For example, a database dump with the client the updater also uses:

bash
mariadb-dump -u pterodactyl -p --single-transaction panel > panel-$(date +%F).sql

The updater makes its own database dump before every update and keeps the last three under storage/updater. Those are for rolling back an update, not a replacement for regular backups.

Not built yet#

Compared with the original plan, these are not built: a screen in the admin area and on the server page, a second destination per server, e-mail or webhook notifications and capacity warnings, bandwidth limits, and per-server sub accounts. Failures are recorded in the activity log and on the run.

Source: Gobiadactyl Panel docs/gobia-backups.md, extensions/gobia-backups (config and console commands) and docs/gobia-updates.md at tag gobia-v2.0.0, checked 2 November 2026.

Your likes

Only what this browser did. Your data on this device