https://metaplay.io logo
Exporting all Players? To migrate from Stable -> P...
# questions-and-feedback
a
Hi, was there something ready-made for exporting all players as an archive? I made a custom exporter earlier to export all instances of our custom server-side entity, that works fine, I can do the same to export a players archive too. But was it already somewhere? I can't find it in the docs nor the dashboard so maybe not. My goal is to migrate existing users from Stable to Production. We may add Social Logins to do that, so that people can use that first on Stable and then reconnecting the same account should work when we switch to Prod. But I'll now just test it with my own user and reconnect the account to the test device using the dashboard.. I'll export that single user via the Dashboard now but will need to export all later on. We are not using other entities now so just the players will do, we'll add the feature with our own multiplayer entity back later.
j
Hi, We currently don't support exporting all players to a different environment, we only have a single player export feature, you can likely invoke the same API for each player you want to export. You might also be able to connect to the database using mysql client and export the whole table, and then manually import it to your prod server but I've never done this before. In addition, Stable is not meant for public testing and we can't guarantee performance above a certain number of players.
a
yep, that's why are migrating from Stable to Production 🙂 iirc direct db connect is not possible to the shared hosting envs like Stable?
anyway i'm fine with the db export - import way. i tested the procedure with my own user and all went well
j
Let me check
Alright, it's theoretically possible, but we don't officially support it. The instructions on the [docs](https://docs.metaplay.io/self-hosting/how-to-guides/deploying-cloud-infrastructure.html#accessing-the-database-with-a-shell-script) explain how to do it but it is not written with Metaplay hosted environments in mind and requires knowledge about Kubernetes/infra
a
k maybe i go the export archive way
7 Views