Backup Fire agent for Firebase
This is open-source core of Backup Fire, a service that enables automatic backup of Firestore, the Firebase's DB, and Firebase authentication data.
To setup automatic backups, sign up at Backup Fire, create a project, and follow the provided instructions. The examples below are provided only as a reference.
Installation
The library is available as an npm package. To install it, run:
npm install @backupfire/firebase --save
yarn add @backupfire/firebase
Usage
Make sure that you created and activated a project at Backup Fire first.
JavaScript:
const backupfireAgent = require('@backupfire/firebase')
exports.backupfire = backupfireAgent()
TypeScript:
import backupfireAgent from '@backupfire/firebase'
export const backupfire = backupfireAgent()
Specify the region to deploy the agent function:
import backupfireAgent from '@backupfire/firebase'
export const backupfire = backupfireAgent({
region: 'europe-west3'
})
License
BSD 3-Clause © Backup Fire