{"slug": "pterodactyl-panel-and-wings-migration", "title": "Pterodactyl panel and wings migration", "summary": "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.", "body_md": "# Pterodactyl Migration\n\n## Migrating panel\n\n1. Backup your hidden `.env` file containing the decryption APP_KEY from `/var/www/pterodactyl`\n<br>\n\n2. Export the database, in this case ours is named **panel**\n\n    ```mysql\n    mysqldump -u root -p --opt panel > /var/www/pterodactyl/panel.sql\n    ```\n\n    The *.sql* file would be saved in the `/var/www/pterodactyl/` folder.\n<br>\n\n3. Follow the panel [installation documentation](https://pterodactyl.io/panel/1.0/getting_started.html) to install the panel on your new server.\n<br>\n\n4. 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.\n\n    ```mysql\n    mysql -u root -p panel < panel.sql\n    ```\n\n    <br>\n\n5. After this, transfer your old `.env` file to the `/var/www/pterodactyl` location to complete the panel migration.\n\n## Migrating Wings\n\n1. Follow the Wings [installation documentation](https://pterodactyl.io/wings/1.0/installing.html) to install Wings on your new machine.\n\n<br>\n\n2. 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.\n\n<br>\n\n### Updating allocations\n\nAfter the migration of volumes is done, you must update all the allocations since your IP most likely has changed.\n<br>\n\nType ```hostname -I | awk '{print $1}'``` on your Wings machine to retrieve the IP. After that, login to your Panel machine to modify the database.\n\nIn the example below, we assume that the database name is `panel`. Replace `newiphere`with the IP returned from the hostname command above while `oldiphere` with the IP of your old allocation.\n\n```mysql\nmysql -u root -p\nUPDATE panel.allocations SET ip = 'newiphere' WHERE ip = 'oldiphere';\nexit\n```\n", "url": "https://wpnews.pro/news/pterodactyl-panel-and-wings-migration", "canonical_source": "https://gist.github.com/trenutoo/c18258658bef28e73b24d11d02d24915", "published_at": "2021-05-04 13:16:21+00:00", "updated_at": "2026-05-23 18:35:54.775967+00:00", "lang": "en", "topics": ["developer-tools", "cloud-computing", "open-source"], "entities": ["Pterodactyl", "Wings", "MySQL", "Linux"], "alternates": {"html": "https://wpnews.pro/news/pterodactyl-panel-and-wings-migration", "markdown": "https://wpnews.pro/news/pterodactyl-panel-and-wings-migration.md", "text": "https://wpnews.pro/news/pterodactyl-panel-and-wings-migration.txt", "jsonld": "https://wpnews.pro/news/pterodactyl-panel-and-wings-migration.jsonld"}}