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

    backing up my FA configuration

    Scheduled Pinned Locked Moved
    Q&A
    0
    4
    3.5k
    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.
    • R
      richb201
      last edited by

      I am running FA on my docker based PC. I'd like to backup the FA database to BackInTime just in case. What directory do I backup?

      1 Reply Last reply Reply Quote 1
      • danD
        dan
        last edited by

        You'd have to open the port to your database. The ports section here: https://raw.githubusercontent.com/FusionAuth/fusionauth-containers/master/docker/fusionauth/docker-compose.yml

        Then you can connect to your posgresql database with any typical postgresql backup tool such as pg_dump. I'm afraid I'm not familiar with them, so can't offer any recommendations.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 1
        • R
          richb201
          last edited by

          Well, I have been informed by AWS tech support that when I do a "snapshot" of my RDS database, the entire dbase is being back up.

          But I am concerned that FA was not written to keep ALL THE DATA in the database? Can you confirm with me that if I install a new copy of FA , as long as it is connected to my same gloabl database, it will work exactly like the other servers?

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

            @richb201,

            I cannot speak to how RDS within AWS configures/performs their DB backups. A typical workflow for customers is to use PG dump. Once the DB is dumped, you can run a PG Restore (or equivalent MySQL command if needed). To verify data integrity, you can check the total number of records before and after the database dump. RDS AWS backups may be just as seamless, but I cannot speak to them as I have not used them.

            The only other thing would be to be mindful of is encrypting your data in transit. There are a number of tutorials online that incorporate or give consideration to encryption and security as part of a DB backup / restore operation (AWS may even have a guide).

            I am 99 percent confident that FusionAuth persists most of your data in the database (with the exception of possibly Kickstart files). So you would stand up your database (back up or otherwise) and point FusionAuth to that database. From there FusionAuth should work. You will likely need to reindex your data (from the Admin UI) to reestablish your User and Entity search indexes.

            If you are concerned, you run a trial operation in the cloud. Standup a docker image, connect to an RDS from AWS. Back it up. Stand up the backup. Point FusionAuth to the new database. Confirm that everything is as it should be.

            I hope that this helps!

            Josh

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