承接 stayapp-corp/firebase-realtime-database-backup 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stayapp-corp/firebase-realtime-database-backup

Composer 安装命令:

composer require stayapp-corp/firebase-realtime-database-backup

包简介

Firebase Realtime database library to backup and restore small and larger projects.

README 文档

README

Current version Supported PHP version Total Downloads License

GitHub stars GitHub watchers

Available on Packagist.

Description

Unfortunately, the firebase backup service is only today available for Blaze plan and you can not do backups more than one time per day.

The manual export button available on cli (that uses the rest endpoint) doesn't work for bigger databases. This library permits to export and import the firebase realtime-database using the rest api and a division strategy to enable the capability to export and import bigger databases.

Adding this to your project using Composer

In some situations, is a good idea to install this library in your project and use our processor classes to make your own backup in your service. To do that you can install this library using composer:

$ cd <your_project>
$ composer require stayapp-corp/firebase-realtime-database-backup

More info about Composer at getcomposer.org.

Using this library by Console CLI

Database Export

./frdbackup export --project_id <firebase project id> --project_key <firebase REST access key>

There are some optional parameters:

Long parameter short parameter Description Default value
temp_dir t Temporary directory to save all downloaded database files before creating .tar.gz backup file ./temp
max_ipp i The maximum size of items per page that some query to the database will use. Note that if you specify a very large number and you have nodes that can't get this quantity of samples, the script can take a long time to finish because it will be decrease the IPP size until it can get the data. 1000
output_file o Compressed backup (.tar.gz) output file path ./backups/BACKUP-<ACTUAL_DATE>

Database Import

./frdbackup import --project_id <firebase project id> --project_key <firebase REST access key> --backup_file <path to .tar.gz backup file>

统计信息

  • 总下载量: 50
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固