codecheef/backup

This package will take backup you mysql database automatically via cron job.

v1.0.0 2021-04-03 08:37 UTC

This package is auto-updated.

Last update: 2024-11-17 14:40:54 UTC


README

Scrutinizer Code Quality Issues Stars

This package will take backup your mysql database automatically via cron job.

Installing laravel-backup

The recommended way to install laravel-backup package using composer

composer require codecheef/backup

If your Laravel project version is less than 5 then

Add the service provider to config/app.php

'providers' => [

Codecheef\Backup\BackupServiceProvider::class,

],

To test this package create a 'database' directory inside your public folder.

Creating Directory

/public/database

Then run below command to test it

php artisan backup:run

Setup Cron

To run it via cron job do it inside your app/Console/Kernel.php

protected $commands = [

BackupCommand::class

];

and now call it via shceduller that when you want to run it, like daily weekly etc.