cd /news/developer-tools/pterodactyl-panel-and-wings-migratio… · home topics developer-tools article
[ARTICLE · art-12098] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Pterodactyl panel and wings migration

This article provides a step-by-step guide for migrating a Pterodactyl game panel and Wings daemon to a new server. The process involves backing up the `.env` file and database, reinstalling the panel, then transferring the database and configuration files. Finally, it covers migrating server volumes and updating IP allocations in the database to match the new server's address.

read1 min views23 publishedMay 4, 2021

Migrating panel #

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl <br>

  2. Export the database, in this case ours is named panel

    mysqldump -u root -p --opt panel > /var/www/pterodactyl/panel.sql
    

    The .sql file would be saved in the /var/www/pterodactyl/ folder. <br>

  3. Follow the panel installation documentation to install the panel on your new server. <br>

  4. Transfer the panel.sql file to your new server and import the database. Make sure you're in the folder containing your .sql dump when performing the commands.

    mysql -u root -p panel < panel.sql
    

    <br>

  5. After this, transfer your old .env file to the /var/www/pterodactyl location to complete the panel migration.

Migrating Wings #

  1. Follow the Wings installation documentation to install Wings on your new machine.

<br>

  1. Once new Wings are configured, migrate all your volumes from your old machine to the new one. By default, the path would be /var/lib/pterodactyl/volumes/. Check your Wings config.yml for your configured data path.

<br>

Updating allocations

After the migration of volumes is done, you must update all the allocations since your IP most likely has changed. <br>

Type hostname -I | awk '{print $1}' on your Wings machine to retrieve the IP. After that, login to your Panel machine to modify the database.

In the example below, we assume that the database name is panel. Replace newipherewith the IP returned from the hostname command above while oldiphere with the IP of your old allocation.

mysql -u root -p
UPDATE panel.allocations SET ip = 'newiphere' WHERE ip = 'oldiphere';
exit
── more in #developer-tools 4 stories · sorted by recency
── more on @pterodactyl 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/pterodactyl-panel-an…] indexed:0 read:1min 2021-05-04 ·