PHP code example of octoweb / yii2-db-dump

1. Go to this page and download the library: Download octoweb/yii2-db-dump library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

octoweb / yii2-db-dump example snippets



    ......
   'modules' => [
        'backup' => [
            'class' => 'octoweb\DbDump\Module',
        ],
    ],
    ......



    ......
   'modules' => [
        'backup' => [
            'class' => 'octoweb\DbDump\Module',
        ],
    ],
    ......


yii backup/console/create

php /public_html/yii backup/console/create >> /public_html/log/crond_error.log 2>&1

php composer.phar