ericjiang97 / firestore-backup-function

Google Cloud Function that Triggers Firestore Backups via the Firestore Admin (Beta) APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firestore Backup - Firebase Function

Requirements

To run you will need Node 8, to use Node 8, recommend using Node Version Manager and run

nvm install 8
nvm use 8

Development

To develop this simply add a .firebaserc file with the projectId

{
  "projects": {
    "default": "MY-PROJECT-ID"
  }
}

Installing Dependencies

To install dependencies, simply run npm install or yarn inside the functions directory.

Customisation

You can customise the request

firebase functions:config:set backupservice.collections="users,emails"

LICENSE

This repo is licensed under MIT and is based off source code in a private repo by @ericjiang97

About

Google Cloud Function that Triggers Firestore Backups via the Firestore Admin (Beta) APIs

License:MIT License


Languages

Language:TypeScript 100.0%