boehsermoe / luya-module-backup
LUYA 备份模块。
dev-master
2018-05-31 22:32 UTC
Requires
This package is auto-updated.
Last update: 2024-09-14 19:53:25 UTC
README
安装
composer require boehsermoe/luya-module-backup
要将模块添加到项目中,请进入配置的模块部分
return [ 'modules' => [ // ... 'backup' => [ 'class' => 'luya\backup\Module', // Path where files will exported. default @runtime/backups //'exportDir' => '/your/export/path' ], // ... ], ];
创建一个新的任务
调度 -> 数据库备份任务 -> 添加
执行任务
./luya scheduler/run/now {id/name of the job}
通过cron启动任务
每分钟通过cron启动所有过期任务
* * * * * ./luya scheduler/run
