Based on LUYA schedule module
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'
],
// ...
],
];
Scheduler -> DatabaseBackupJobs -> Add
./luya scheduler/run/now {id/name of the job}
Start all expired jobs every minute via cron:
* * * * * ./luya scheduler/run