cdwv/cronos-database-dumper
Composer 安装命令:
composer require cdwv/cronos-database-dumper
包简介
Cronos database dumper
README 文档
README
This bundle populates your crontab with tasks that will backup your databases using mysqldump.
Requirements
Backups are created using the mysqldump command which means you need to have at least
mysql-client package installed on your server.
sudo apt-get update
sudo apt-get install mysql-client
Installation
run:
composer require cdwv/mysql-dumper-command-bundle
composer require cdwv/cronos-database-dumper
add bundle to AppKernel:
new CodeWave\CronosDatabaseDumperBundle\CodeWaveCronosDatabaseDumperBundle(),
new CodeWave\MysqlDumperCommandBundle\CodeWaveMysqlDumperCommandBundle()
Run:
cdwv:cronos-database-dumper:update
Configuration:
in config.yml, defaults values:
code_wave_cronos_database_dumper:
minute: 4
hour: 0
dumps_location: .
key: app_name
php_path: /usr/bin/php
env: prod
clean_older_than: 14 #days
Crontab:
The above configuration will result in the following entry in your crontab:
# KEY app_name
0 4 * * * /usr/bin/php __PATH_TO_YOUR_PROJECT__/app/console cdwv:database:dump --env=prod --path=.
0 4 * * * find * -mtime +14 -exec rm {} \;
# END
This task will dump all of the databases from within your symfony project if there are connections defined for them.
Bear in mind that __PATH_TO_YOUR_PROJECT__ will contain resolved symlinks which means that you might need to call
cdwv:cronos-database-dumper:update each time the path to new version of the app will change
(e.g. if you have releases named by build number).
License
The MIT License © 2015 - 2016
cdwv/cronos-database-dumper 适用场景与选型建议
cdwv/cronos-database-dumper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 172 次下载、GitHub Stars 达 4, 最近一次更新时间为 2017 年 02 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cron cronos dump dumper database bundle」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cdwv/cronos-database-dumper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cdwv/cronos-database-dumper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cdwv/cronos-database-dumper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony 4/5/6 bundle which allows you to use @Cron annotations to configure cron to run your console commands.
This package will add the `dd` and `dump` helpers to your Phalcon application.
Simple Twig extension improving templates debugging
Symfony bundle to monitor and execute commands
nice output for debug functions for PHP 5.3
Scheduling extension for Yii2 framework
统计信息
- 总下载量: 172
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-21