ifmx/webbackupper
Composer 安装命令:
composer require ifmx/webbackupper
包简介
A simple PHP WebBackupper for Wordpress Instances, databases, folders and FTP/SFTP-Folders local and to a FTP/SFTP Server
关键字:
README 文档
README
WebBackupper
A simple PHP WebBackupper for Wordpress Instances, databases, folders and FTP/SFTP-Folders local and to a FTP/SFTP Server
Goal of this project is to provide a small Web Backupper for backup webpages, or projects to a FTP/SFTP Server
Manual
1. Copy files to webserver
2. Copy config_sample.php and rename it to config.php
3. Edit config.php file
- Wordpress Instances (if not needed let array empty -
'wordpress' => [])// WP-Directory 1 with default wp-content folder 'TestWordpress' => '/home/var/www/site1', // WP-Directory 2 with custom folders 'TestWordpress' => [ 'rootDirectory' => '/home/var/www/site2', 'directories' => [ // Folder 1 'wp-data', // Folder 2 'wp-admin' ], ] - Webapps (database and folders) (if not needed let array empty -
'webapps' => [])'webapps' => [ // Webapp 1 'TestDb' => [ 'directories' => [ // Folder '/home/var/www/folder', '/home/var/www/folder1' ], // Database informations 'db' => [ 'name' => 'db_name', 'host' => 'https://db.host.com', 'port' => '3306', // optional 'username' => 'username', 'password' => 'password' ] ] ] - Databases (if not needed let array empty -
'databases' => [])'databases' => [ // Database 1 'TestDb' => [ 'name' => 'db_name', 'host' => 'https://db.host.com', 'port' => '3306', // optional 'username' => 'username', 'password' => 'password' ] ] - Directories (if not needed let array empty -
'directories' => [])'directories' => [ // one folder 'TestFolder' => '/home/var/www/folder', // multiple folders 'TestMultipleFolders' => [ '/home/var/www/folder1', '/home/var/www/folder2' ] ] - FTP-Files (if not needed let array empty -
'ftps' => [])'ftps' => [ // FTP-Config 1 'TestFtp' => [ 'isSftp' => false, 'host' => 'sftp.mydomain.com', 'port' => '21', 'username' => 'backup', 'password' => '***', 'path' => 'my/folder/' ] ] - System
'system' => [ 'debug' => $debug_mode, // is debug mode on 'localBackupCopies' => 10, // number of local backups before delete 'timezone' => 'Europe/Zurich', // timezone 'logToFile' => true, // write log to file 'sendLogEmail' => true, // send email to webmaster 'webmasterEmailAddress' => 'webmaster@mydomain.com' ] - Systemdirectorys
'sysDirectories' => [ 'backup' => 'backup', // path to backup folder 'log' => 'log' // path to log folder ], - Paths
'paths' => [ 'mysqldump' => '/usr/local/bin' // Path to mysqldump ] - FTP-Upload Settings
- Only one FTP configuration
'backupFtp' => [ 'enabled' => false, 'connections' => [ 'isSftp' => true, 'host' => 'sftp.mydomain.com', 'port' => '22', 'username' => 'backup', 'password' => '***', 'path' => 'backup/web/' ] ] - Multiple FTP configurations
'backupFtp' => [ 'enabled' => false, 'connections' => [ 'NAS' => [ 'isSftp' => true, 'host' => 'sftp.mydomain.com', 'port' => '22', 'username' => 'backup', 'password' => '***', 'path' => 'backup/web/' ] ] ]
- Only one FTP configuration
4. Create cli task
Create a cli task that runs cli.php with PHP8.2. Everytime the task is running, the backup job will be done.
ifmx/webbackupper 适用场景与选型建议
ifmx/webbackupper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「web」 「wordpress」 「backup」 「sftp」 「ftp」 「backupper」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ifmx/webbackupper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ifmx/webbackupper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ifmx/webbackupper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
Model of a web-based resource
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
Retrieve a WebResourceInterface instance over HTTP
A simple database backup manager for Symfony2 with support for S3, Rackspace, Dropbox, FTP, SFTP.
Fix failed Craft backups and restores with full paths to psql, mysql, and mysqldump executables.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-01