Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 822 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 822 Bytes

Backup Module

Based on LUYA schedule module

Installation

composer require boehsermoe/luya-module-backup

In order to add the modules to your project go into the modules section of your config:

return [
    'modules' => [
        // ...
        'backup' => [
            'class' => 'luya\backup\Module',
            
            // Path where files will exported. default @runtime/backups
            //'exportDir' => '/your/export/path' 
        ],
        // ...
    ],
];

Create a new job

Scheduler -> DatabaseBackupJobs -> Add

screen

Execute job

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

Start jobs by cron

Start all expired jobs every minute via cron:

* * * * * ./luya scheduler/run