The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist octoweb/yii2-db-dump "*"
or add
"octoweb/yii2-db-dump": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply activate module in config file:
<?php
......
'modules' => [
'backup' => [
'class' => 'octoweb\DbDump\Module',
],
],
......
?>
Once the extension is installed, simply activate module in config file:
<?php
......
'modules' => [
'backup' => [
'class' => 'octoweb\DbDump\Module',
],
],
......
?>
Console create
yii backup/console/create
cron
php /public_html/yii backup/console/create >> /public_html/log/crond_error.log 2>&1