FirebaseEngine
firebase-engine
Engine to Backup, Clean, Restore. Work for Firebase.Firestore, Firebase.Storage, Firebase.Auth
Install
npm i firebase-engine -g
Launch parameters
Name | Short name | Description |
---|---|---|
operations | o | backup (b), restore (r) or clean (c). Default: backup |
path | p | Path to service account JSON file |
services | s | firestore (f), storage (s), auth (a), can be separated by commas. Default: all |
backup | b | Path to backup or restore file. Default: ./{$PROJECT_ID + $TIMESTAMP}.backup |
--nocompress | -nc | Do not use data compression |
Use
With full names
firebase-engine operations="clean, restore" path="./test.json" services="firestore, storage" backup="test.backup"
With short names
firebase-engine o="b, c" p="./test.json" b="test.backup"
Open Source
Service Account Key
Get your service account key from IAM
Open google IAM
Or from the FIREBASE project
Open official firebase docs
WARNING (Password hashes of users)
Firebase API also returns the passwordSalt and passwordHash hashed by the Firebase Auth backend for password users if the user/service account used to generate the request OAuth access token has the firebaseauth.configs.getHashConfig permission. Otherwise the passwordHash and passwordSalt will not be set.
Open official firebase docs
LICENSE
Apache-2.0