4
14 Comments

Who's using Firestore from Firebase, do you backup your database and how?

Hi! I'm working on a backup service and wondering if there anyone uses Firestore. How do you backup your data?

on August 29, 2019
  1. 2

    I assumed that Firestore would be doing that automatically? If that's not the case, I will need to look into that. Thanks for bringing this up.

    1. 2

      They provide automatic backups for the Realtime Database, but not for Firestore.

  2. 2

    I do from time to time, but it's not automated. There are api calls you can make that will put it straight into cloud store, after which you can also import it to bigquery.

  3. 2

    We are using the firebase realtime database they do provide backups feature in the paid tier.

    1. 1

      I see!

      What about users, do you backup users data (if you use Firebase Auth)?

      How do you backup data before running a migration?

      1. 2

        We download users data using firebase-cli and upload it to s3. We haven't done any migration so far, if we have to do there is an option to do a manual backup in the firebase itself.

        1. 1

          I see, thank you!

  4. 2

    I'm using Firestore, and the short answer is today I don't πŸ˜….

    1. 3

      Haha, I have a nice quote for you "Yesterday was the best time to backup. The second-best is now."

      I highly recommend starting with manual backups to your machine from time to time: https://firebase.google.com/docs/firestore/manage-data/export-import

      Weird question, did you considered backing up the DB since you started your project?

      1. 1

        Yesterday was the best time to backup. The second-best is now."

        Don't want to be 'that guy', but a backup from today is better than a backup from yesterday 🀷

        And yes - since they introduced export/import that's the easiest way I've found to do it.

      2. 1

        It’s a good quote, and one I do abide by in my day job! That said, my side project that uses Firestone is very small, with only a few users. Backups fell into the list of things that needed to be tackled if/when the app is ready to scale, but until then fell out of the scope for an MVP. So I hadn’t really explored an option to do so at this time.

        1. 1

          Cool, I see! How you backup data on your day job? Do you use any service?

  5. 1

    I use firestore but the side projects using it dont have enough mrr or contractual obligations to care. For future projects I'll just go up to the paid plan using backups

    1. 1

      Got you! Just for a note, there’s no automated backup for Firestore.

Trending on Indie Hackers
Priorities for launching a SaaS solo, with no budget User Avatar 209 comments I built a tool directory that doesn't pretend every founder has the same needs User Avatar 45 comments AI helped me ship faster. Then I forgot what my product actually does. User Avatar 13 comments A one-week feature took two months, mostly spent keeping three systems in sync User Avatar 8 comments I built a browser-based photo geotagging tool. What should I lead with? User Avatar 6 comments Why founder-led outbound breaks the moment you try to delegate it User Avatar 5 comments