2017 © Pedro Peláez
 

yii2-extension yii2-backup

Database Backup and Restore functionality

image

fgh151/yii2-backup

Database Backup and Restore functionality

  • Wednesday, May 3, 2017
  • by fgh151
  • Repository
  • 1 Watchers
  • 3 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Русская документация доступна на сайте OpenItStudio, (*1)

Yii2 Backup and Restore Database

Database Backup and Restore functionality, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

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

or add, (*5)

"fgh151/yii2-backup": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply add it in your config by :, (*7)

Basic config/web.php, (*8)

Advanced [backend|frontend|common]/config/main.php, (*9)

    '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 ] ],, (*10)

make sure you create a writable directory named _backup on app root directory., (*11)

RBAC

You can use RBAC with module. Simply add it in your config:, (*12)

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

Usage

Pretty Url's /backup, (*13)

No pretty Url's index.php?r=backup, (*14)

Console yii backup/backup, (*15)

The Versions

03/05 2017

dev-master

9999999-dev http://openitstudio.ru

Database Backup and Restore functionality

  Sources   Download

Apache-2.0

The Requires

 

by Shiv Charan Panjeta

database yii2 backup restore

11/01 2016

1.0.2

1.0.2.0 http://openitstudio.ru

Database Backup and Restore functionality

  Sources   Download

Apache-2.0

The Requires

 

by Shiv Charan Panjeta

database yii2 backup restore

11/01 2016

v1.0.0

1.0.0.0

Database Backup and Restore functionality

  Sources   Download

Apache-2.0

The Requires

 

by Shiv Charan Panjeta

database yii2 backup restore