PHPackages                             phuongdev89/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. [File &amp; Storage](/categories/file-storage)
4. /
5. phuongdev89/yii2-backup

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

phuongdev89/yii2-backup
=======================

Yii2 backup module

026PHP

Since Jan 8Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 backup module
==================

[](#yii2-backup-module)

Yii2 backup module

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

[](#installation)

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

Either run

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

```

or add

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

```

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

Migration
---------

[](#migration)

```
php yii migrate --migrationPath=@vendor/phuongdev89/yii2-backup/src/migrations

```

Usage
-----

[](#usage)

First, go to web:

```
http://localhost/index.php?r=backup/config

```

In console configure:

```
'controllerMap'       => [
    'backup' => [
        'class' => 'phuongdev89\backup\commands\BackupController',
    ],
],
'modules'             => [
    'backup' => [
        'class'     => 'phuongdev89\backup\Module',
        'databases'     => [
            'db',
            'db1',
        ],
        'directories' => [
            '@app/web/uploads',
            '@backend/web/uploads',
        ],
        'transport' => [
            'mail' => [
                'class'     => '\phuongdev89\backup\transports\Mail',
            ],
            'ftp'  => [
                'class'  => '\phuongdev89\backup\transports\Ftp',
            ],
        ],
    ],
]

```

How to use in command line:

```
php yii help backup

```

\####Notice:

- Make sure [yii\\swiftmailer\\Mailer](http://www.yiiframework.com/doc-2.0/yii-swiftmailer-mailer.html) has been configured or backed up files can't be send through mail.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b606411df0cf562fe1d77d5ee80c3ef2e2c34a06d93470a4127c8910132ba258?d=identicon)[phuongdev89](/maintainers/phuongdev89)

---

Top Contributors

[![phuongdev89](https://avatars.githubusercontent.com/u/7648033?v=4)](https://github.com/phuongdev89 "phuongdev89 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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