FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Migrating users - from one server to another. How to do it.

    Scheduled Pinned Locked Moved
    Q&A
    0
    2
    2.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • joshuaJ
      joshua
      last edited by

      Migrating users - from one server to another.

      1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua
        last edited by robotdan

        If you need to preserve passwords, and you have access to the database:

        1. You could manually read from the db and then import users using the import API.
          • https://fusionauth.io/docs/v1/tech/apis/users/#import-users
        2. You can use pg_dump or mysqldump respectively if you want to move the entire system from one server to another, users and all. The target system has to be at the same or greater version than the source. If the target is at a greater version than the source, you will enter maintenance mode on startup to migrate the schema.

        If you do not need to preserve passwords, then you could use the User Search API and the User Import API together.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post