定制 lyrasoft/backup 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lyrasoft/backup

最新稳定版本:2.0.6

Composer 安装命令:

composer require lyrasoft/backup

包简介

README 文档

README

Installation

Windwalker 4

Install from composer.

composer create-project lyrasoft/backup

Then run this command to publish routes.

php windwalker pkg:install lyrasoft/backup --tag=routes

The config file is in etc/packages/backup.php

Standalone

Install from composer

composer create-project lyrasoft/backup

Then the installation script will ask you some questions:

Project Name: # Your Site Name, this will be the backup title
Do you want to dump Files? [y/N] # Mostly we can choose N.
Backup Root[.]: # Type the absolute or relative path to site root
Do you want to dump DB? [Y/n] # y
Host[localhost]: # DB host
DB Name: # DB name
User[root]: # DB user
Password: # DB password
Success install backup.php file.

# If you want to register to portal instantly, type "Y"
Register backup to portal? [Y/n]
Site URL: # Enter site URL, that portal can fetch backup file
Please fill XXX-XXX to Portal.
Open https://portal.simular.co/device/login from your local browser.

If you want to register to portal, see Documentation

After installed, the config.php file will be generated at backup root folder, you can modify it if you want.

Commands

In windwalker, type

php windwalker backup:{command}

In standalone file, use:

php backup.php {command}

Command: run

This command will instantly output the zip stream to terminal.

If you want to output to a file, use:

backup:run > /path/to/file.zip

You can enter your own db info:

backup:run --host=localhost --db=sakura -u=root -p {pass} > /path/to/file.zip

In windwalker, you may choose backup profile

php windwalker backup:run {profile} > /path/to/file.zip

Command: token

If you want to get backup, use this command to print token string.

Command: register

Register this backup script to Portal, see Documentation

统计信息

  • 总下载量: 4.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-27