moox/backup-server
Composer 安装命令:
composer require moox/backup-server
包简介
Filament UI for Spatie Laravel Backup Server.
README 文档
README
Moox Backup Server
Filament UI for Spatie Laravel Backup Server.
Quick Installation
These two commmands are all you need to install the package:
composer require moox/backup-server php artisan mooxbackupserver:install
Curious what the install command does? See manual installation below.
What it does
Filament UI for Spatie Laravel Backup Server. Create automated or make manual incremental backups. More information and screenshots will follow.
Manual Installation
Instead of using the install-command php artisan mooxbackup-server:install you are able to install this package manually step by step:
// Publish and run the migrations: php artisan vendor:publish --tag="backup-server-migrations" php artisan migrate // Publish the config file with: php artisan vendor:publish --tag="backup-server-config"
Usage
SSH Connection
Create ssh connection to your source server
Add SSH key to your server. Once your key is added shh into your instance.
For Forge users:
Open your Command Line and type ssh forge@your-address.
Add source server ssh key to your destination server
Copy the public key from your source server and add it to your destination server. Connect destination and source server. Confirm fingerprinting from destination server.
Create new Destination
name: the name of this destination
disk_name: the name of one of the disks configured in config\filesystems.php. The chosen disk must use the local driver
Create new Source
Set a Name
Add your Hostname
Set the ssh User
Ssh Port should be 22
Copy ssh key path from source server (in case of forge: "~/.ssh/id_rsa")
The ssh user to get into the source server
Cron expression when to start a backup (Cron Help)
Choose a given destination
Pre_backup_commands: To create a MYSQL Backup u need to cd in your folder and create a backup. Each value is a command that will be executed. For example:
| Key | Value |
|---|---|
| 0 | cd /home/forge/yourplatform.com/ |
| 1 | mysqldump DATABASE -uUSERNAME -pPASSWORD > dump.sql |
| only change DATABASE USERNAME AND PASSWORD |
Post_backup_commands: Now do everything that should be executed after a backup. In this case we want to remove the dump from server.
| Key | Value |
|---|---|
| 0 | cd /home/forge/yourplatform.com/ |
| 1 | rm -f dump.sql |
Includes: specify a include path
| Key | Value |
|---|---|
| 0 | /home/forge/yourplatform.com/ |
To exlude paths you should give paths relative to the paths given in includes
Creating Backups
Now you can create backups ether manual or automatical You just need to select the Source.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
moox/backup-server 适用场景与选型建议
moox/backup-server 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 6, 最近一次更新时间为 2025 年 03 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「laravel package」 「filament」 「filament plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 moox/backup-server 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 moox/backup-server 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 moox/backup-server 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple ASCII output of array data
Alfabank REST API integration
Package for view storage in laravel
User Approval Laravel Package
PHPUnit Pretty Result Printer
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-07
