Skip to content

techmahedy/laravel-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Database Backup Package

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.

Packages

No packages published

Languages