Skip to content

ethanbonin/Firestore-Backup-Scheduler

Repository files navigation

Getting Started

Step 1

  • Download gcloud which can be found HERE

Step 2

  • Download Repo: git clone https://github.com/ethanbonin/Firestore-Backup-Scheduler.git

Step 3

  • Run app: npm run create

You'll then see a command propt as such:


Firestore PROJET_ID [Press Return when finished]: [YOUR_FIREBASE_PROJECT_ID]

Last Steps (To verify it worked)

It's that easy. Just verify the application was deployed successfully at go to these links: https://[YOUR_FIREBASE_PROJECT_ID].appspot.com/ You should see something like this: alt text

Then to manually start an backup go to this link (if you want): https://[YOUR_FIREBASE_PROJECT_ID].appspot.com/cloud-firestore-export?outputUriPrefix=gs://[YOUR_FIREBASE_PROJECT_ID].appspot.com

alt text

When you are finished with the command prompt. It should do everything for you. Just go to your GOOGLE CLOUD STORAGE to verify that the backup was successfully made. You should see something like this in your bucket.

alt text

NOW ENJOY THOSE BACKUPS

Contribute????

Just fork the project then submit a pull request. Obviously, code can always be made better. So feel free to help if you have any ideas!

About

This repository helps you create a daily backup for your Firebase Firestore database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published