boehsermoe/luya-module-backup

The LUYA Backup module.

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

This package is auto-updated.

Last update: 2024-05-14 19:13:36 UTC


README

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