boehsermoe/luya-module-backup

LUYA 备份模块。

安装: 469

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 1

类型:luya-module

dev-master 2018-05-31 22:32 UTC

This package is auto-updated.

Last update: 2024-09-14 19:53:25 UTC


README

基于LUYA 调度模块

安装

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' 
        ],
        // ...
    ],
];

创建一个新的任务

调度 -> 数据库备份任务 -> 添加

screen

执行任务

./luya scheduler/run/now {id/name of the job}

通过cron启动任务

每分钟通过cron启动所有过期任务

* * * * * ./luya scheduler/run