Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n6g7/firebase-backup
A set of firebase functions to backup realtime db / firestore data.
https://github.com/n6g7/firebase-backup
backup firebase firebase-realtime-database firebase-storage firestore
Last synced: about 1 month ago
JSON representation
A set of firebase functions to backup realtime db / firestore data.
- Host: GitHub
- URL: https://github.com/n6g7/firebase-backup
- Owner: n6g7
- Created: 2018-03-17T18:36:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-09T12:43:58.000Z (about 5 years ago)
- Last Synced: 2024-04-24T20:43:53.870Z (7 months ago)
- Topics: backup, firebase, firebase-realtime-database, firebase-storage, firestore
- Language: JavaScript
- Size: 11.7 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# firebase-backup
[![CircleCI](https://circleci.com/gh/n6g7/firebase-backup.svg?style=svg)](https://circleci.com/gh/n6g7/firebase-backup)
[![npm version](https://badge.fury.io/js/firebase-backup.svg)](https://badge.fury.io/js/firebase-backup)
[![Known Vulnerabilities](https://snyk.io/test/github/n6g7/firebase-backup/badge.svg?targetFile=package.json)](https://snyk.io/test/github/n6g7/firebase-backup?targetFile=package.json)Firebase functions to backup realtime and firestore databases.
Backup files are stored in firebase storage.## Usage
- Install in your functions directory:
```sh
cd ./functions
npm install firebase-backup --save
```
- Register a new function in `functions/index.js`:
```js
const backup = require('firebase-backup')exports.backup = backup.realtimeDb()
```## To do
- [X] Support firestore
- [ ] Support other types of functions (pubsub, ...?)
- [ ] Option: only backup a subsection of the database (selector)
- [ ] Option: custom path for backup file
- [ ] Option: compress backup file