PHPackages                             fgh151/yii2-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. [Database &amp; ORM](/categories/database)
4. /
5. fgh151/yii2-backup

ActiveYii2-extension[Database &amp; ORM](/categories/database)

fgh151/yii2-backup
==================

Database Backup and Restore functionality

1.0.2(10y ago)31.1kApache-2.0PHPCI failing

Since Jan 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fgh151/yii2-backup)[ Packagist](https://packagist.org/packages/fgh151/yii2-backup)[ Docs](http://openitstudio.ru)[ RSS](/packages/fgh151-yii2-backup/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (1)Versions (3)Used By (0)

Русская документация доступна на сайте [OpenItStudio](https://openitstudio.ru/portfolio/48.html)

Yii2 Backup and Restore Database
================================

[](#yii2-backup-and-restore-database)

Database Backup and Restore functionality

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist fgh151/yii2-backup "*"

```

or add

```
"fgh151/yii2-backup": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply add it in your config by :

Basic `config/web.php`

Advanced `[backend|frontend|common]/config/main.php`

```
    'modules'    => [
        'backup' => [
            'class' => 'fgh151\modules\backup\Module',
        ],
        ...
        ...
    ],

```

Console `php 'bootstrap' => ['backup'], 'modules' => [ 'backup' => [ 'class' => 'fgh151\modules\backup\Module', 'path' => '@backend/_backup/' //path alias of backup dir ] ], `

make sure you create a writable directory named \_backup on app root directory.

RBAC
----

[](#rbac)

You can use RBAC with module. Simply add it in your config:

```
        'modules'    => [
             'backup' => [
                 'class' => 'fgh151\modules\backup\Module',
                 'as access' => [
                     'class' => 'yii\filters\AccessControl',
                     'rules' => [
                         [
                             'allow' => true,
                             'roles' => ['admin'],
                         ]
                     ]
                 ]
             ]
            ...
            ...
        ],

```

Usage
-----

[](#usage-1)

Pretty Url's `/backup`

No pretty Url's `index.php?r=backup`

Console `yii backup/backup`

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 61.3% 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 ~0 days

Total

2

Last Release

3823d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/645524?v=4)[Fedor Gorsky](/maintainers/fgh151)[@fgh151](https://github.com/fgh151)

---

Top Contributors

[![fgh151](https://avatars.githubusercontent.com/u/645524?v=4)](https://github.com/fgh151 "fgh151 (19 commits)")[![toxslwork-sys](https://avatars.githubusercontent.com/u/243928617?v=4)](https://github.com/toxslwork-sys "toxslwork-sys (7 commits)")[![spanjeta](https://avatars.githubusercontent.com/u/2450836?v=4)](https://github.com/spanjeta "spanjeta (5 commits)")

---

Tags

backupbackup-scriptyii2yii2-backupdatabasebackupyii2restore

### Embed Badge

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

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

###  Alternatives

[spanjeta/yii2-backup

Database Backup and Restore functionality

285.3k1](/packages/spanjeta-yii2-backup)[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

62410.3k11](/packages/rah-danpu)[cornford/backup

An easy way backup and restore databases in Laravel.

4025.7k](/packages/cornford-backup)[dmstr/yii2-db

Database extensions

19642.9k6](/packages/dmstr-yii2-db)[sarfraznawaz2005/backupmanager

laravel package to backup/restore files and database.

313.9k](/packages/sarfraznawaz2005-backupmanager)

PHPackages © 2026

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