kachkaev/dropbox-backup-bundle
Composer 安装命令:
composer require kachkaev/dropbox-backup-bundle
包简介
Allows backing up your mysql database to dropbox using symfony console
README 文档
README
This bundle allows you backing up your mysql database to dropbox using symfony console command.
Uses modified version of DropboxUploader by hakre.
IMPORTANT
This repository is abandoned and has not been updated since 2013. Please enjoy these alternatives with a far greater functionality:
Installation
Composer
Add the following dependency to your project’s composer.json file:
"require": { // ... "kachkaev/dropbox-backup-bundle": "dev-master" // ... }
Now tell composer to download the bundle by running the command:
$ php composer.phar update kachkaev/dropbox-backup-bundle
Composer will install the bundle to vendor/kachkaev directory.
Adding bundle to your application kernel
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Kachkaev\DropboxBackupBundle\KachkaevDropboxBackupBundle(), // ... ); }
Configuration
Here is the default configuration for the bundle:
kachkaev_dropbox_backup: database: # Only pdo_mysql is supported at the moment driver: pdo_mysql host: localhost port: ~ dbname: ~ # Required user: ~ # Required password: ~ # Required # Directory relative to Dropbox root output_directory: # Output filename consists of prefix and timestamp output_fileprefix: # Set to true to compress .sql to .tgz output_compression: false # Dropbox account credentials (use parameters in config.yml and store real values in prameters.yml) dropbox: user: ~ # Required password: ~ # Required
It is recommended to keep real values for logins and passwords in your parameters.yml file, e.g.:
# app/config/config.yml kachkaev_dropbox_backup: database: driver: %database_driver% host: %database_host% port: %database_port% dbname: %database_name% user: %database_user% password: %database_password% output_directory: db-backup/ output_fileprefix: db_ output_compression: true dropbox: user: %dropbox_user% password: %dropbox_password%
# app/config/parameters.yml # ... database_driver: pdo_mysql database_host: localhost database_port: null database_name: myDatabase database_user: myLogin database_password: myDatabasePassword # ... dropbox_user: email@example.com dropbox_password: myDropboxPassword # ...
Usage
The bundle adds one command to symfony console: app/console dropbox_backup:database which you execute periodically as a cron job.
For example the following cron command dumps your database every 3 hours on a machine with FreeBSD:
# /var/cron/tabs/root
0 */03 * * * cd /path/to/symfony_project/root_dir && su -m symfony_user -c 'app/console dropbox_backup:database --env=prod'
At the moment the bundle only works with a single mysql database, but more database types can be added if there is a demand. In addition, the bundle can be extended to backup content. not only the database.
kachkaev/dropbox-backup-bundle 适用场景与选型建议
kachkaev/dropbox-backup-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 224 次下载、GitHub Stars 达 5, 最近一次更新时间为 2012 年 11 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「dump」 「mysql」 「dropbox」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kachkaev/dropbox-backup-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kachkaev/dropbox-backup-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kachkaev/dropbox-backup-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package will add the `dd` and `dump` helpers to your Phalcon application.
Dibi is Database Abstraction Library for PHP
Simple Twig extension improving templates debugging
nice output for debug functions for PHP 5.3
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
统计信息
- 总下载量: 224
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-02