ichie-benjamin/lara-backup-manager
Composer 安装命令:
composer require ichie-benjamin/lara-backup-manager
包简介
A simple file and database backup and restore manager for laravel framework
README 文档
README
Lara-Backup-Manager is a versatile Laravel package designed to simplify the backup and restoration process for your Laravel applications. With support for various storage options defined in your filesystem.php configuration, it offers flexibility in managing your data backups. Additionally, this package goes a step further by allowing custom HTTP server integration for storage, making it a comprehensive solution for safeguarding your application's critical data. Whether you need to create routine backups or restore your data seamlessly, Lara-Backup-Manager provides an efficient and user-friendly solution for your Laravel projects.
Screenshot
Requirements
- PHP >= 7.3
- Laravel 6+
mysql(to restore database)mysqldump(to backup database)tar(to backup/restore files)zcat(to extract database archive)
Please make sure above binaries are added to PATH environment variable or you can specify full path to them in config file.
Installation
Via Composer
$ composer require ichie-benjamin/lara-backup-manager
(Optional) Add Facade to config/app.php in aliases section:
'BackupManager' => IchieBenjamin\LaraBackupManager\Facades\BackupManager::class,
Publish package's files by running below command:
$ php artisan vendor:publish --provider="IchieBenjamin\LaraBackupManager\ServiceProvider"
It should publish config/lara-backup-manager.php config file and migration file.
Run php artisan migrate to create backup verifier (verifybackup)) table.
Finally setup options in config/lara-backup-manager.php file and open the backup manager at url you have specified in route option eg http//yourapp.com/lara-backup-manager, you should now see interface of BackupManager.
See config/lara-backup-manager.php file for more information about backup settings.
Setting Up Automatic Backups
To setup automatic backups, place following in app/Console/Kernel.php file:
$schedule->command('backupmanager:create')->daily(); $schedule->command('backupmanager:create --only="db"')->everySixHours();
This package provides GUI interface to manage backups, also this following commands are also available:
backupmanager:create Creates backup of files and/or database. backupmanager:create --only="db" Creates backup of database only. backupmanager:create --only="files" Creates backup of files only. backupmanager:list Shows list of backups taken. backupmanager:restore Restores a backup already taken.
Saving Backups to Other Disks
By default this package saves backups to local disk but you can use built-in feature of laravel filesystem to save backups to other disks too. Let's say you want to upload to different server for which you have ftp credentials, you need to update those ftp credentials into laravel's config/filesystems.php file under ftp disk setting. Once you have done that, in backup manager config file (config/backupmanager.php) specify your disk to be ftp instead of local eg:
// define disk options
'disk' => 's3',
instead of
'disk' => 'local',
Now backup files will be saved to s3 instead of locally.
Disclaimer
This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.
Security
If you discover any security related issues, please email ichiebenjamin instead of using the issue tracker.
Credits
License
Please see the license file for more information.
ichie-benjamin/lara-backup-manager 适用场景与选型建议
ichie-benjamin/lara-backup-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 197 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「server」 「backup」 「laravel」 「restore」 「Easy laravel backups」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ichie-benjamin/lara-backup-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ichie-benjamin/lara-backup-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ichie-benjamin/lara-backup-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
A SDK for working with B2 cloud storage.
Store your language lines in the database, yaml or other sources
A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
统计信息
- 总下载量: 197
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-25


