项目作者: kelboy03

项目描述 :
firebase import export tool for database backup
高级语言: JavaScript
项目地址: git://github.com/kelboy03/firebase-import-export.git
创建时间: 2018-09-18T02:24:11Z
项目社区:https://github.com/kelboy03/firebase-import-export

开源协议:MIT License

下载


firebase-import-export

firebase import export tool for database backup

install using NPM
  1. npm install firestore-export-import
Get your Google Cloud Account Creditals from Firebase

you can generate new private key from project settings from firebase console and paste it to serviceAccountKey.json.

Exporting data from firebase/firestore
  1. node export.js <collection_name>

note: after exporting, you need to copy the json file from into another json file as your back-up file.

Importing data from back-ip to firebase/firestore
  1. node import.js import-to-firestore.json

note: import-to-firestore.json must contain the specific json file from your collection, for example: users collection etc..

i hope it helps.. happy coding <3