PHPackages                             lyrasoft/backup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. lyrasoft/backup

ActiveLibrary[File &amp; Storage](/categories/file-storage)

lyrasoft/backup
===============

2.0.7(3mo ago)05.5k↓36.7%[1 issues](https://github.com/lyrasoft/backup-package/issues)1MITPHPPHP &gt;=8.0

Since Jan 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/lyrasoft/backup-package)[ Packagist](https://packagist.org/packages/lyrasoft/backup)[ RSS](/packages/lyrasoft-backup/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (14)Used By (1)

LYRASOFT Site Backup Script
===========================

[](#lyrasoft-site-backup-script)

Installation
------------

[](#installation)

### Windwalker 4

[](#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

[](#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](https://lyrasoft.atlassian.net/wiki/spaces/SRE/pages/629964827/Portal+php)

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

Commands
--------

[](#commands)

In windwalker, type

```
php windwalker backup:{command}
```

In standalone file, use:

```
php backup.php {command}
```

### Command: `run`

[](#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`

[](#command-token)

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

### Command: `register`

[](#command-register)

Register this backup script to Portal, see [Documentation](https://lyrasoft.atlassian.net/wiki/spaces/SRE/pages/629964827/Portal+php)

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance86

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~123 days

Recently: every ~147 days

Total

13

Last Release

90d ago

Major Versions

1.0.8 → 2.0.0-beta12024-01-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1639206?v=4)[Simon Asika](/maintainers/asika32764)[@asika32764](https://github.com/asika32764)

---

Top Contributors

[![asika32764](https://avatars.githubusercontent.com/u/1639206?v=4)](https://github.com/asika32764 "asika32764 (96 commits)")

### Embed Badge

![Health badge](/badges/lyrasoft-backup/health.svg)

```
[![Health](https://phpackages.com/badges/lyrasoft-backup/health.svg)](https://phpackages.com/packages/lyrasoft-backup)
```

###  Alternatives

[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[forumify/forumify-platform

121.8k11](/packages/forumify-forumify-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
