edgar_melkonyan/backup_database

This package backups db

dev-master 2019-09-05 10:13 UTC

This package is auto-updated.

Last update: 2024-05-05 21:00:38 UTC


README

BackupDatabase is package which made to backup data from MySQL and save inside storage folder

Installation

  • Go to app/Console/Kernel.php and do the following

1 Use namespace

use EdgarMelkonyan\BackupDatabase\BackupDatabase;

2 Write class inside commands array

protected $commands = [
        BackupDatabase::class
    ];

3 Provide how ofter you want this command to run ex`

protected function schedule(Schedule $schedule)
    {
        $schedule->command('db:backup')
            ->daily();
    }

Testing

 php artisan db:backup

License

MIT