Package Data | |
---|---|
Maintainer Username: | juice |
Package Create Date: | 2018-11-28 |
Package Last Update: | 2020-07-27 |
Language: | PHP |
License: | proprietary |
Last Refreshed: | 2024-11-23 03:11:06 |
Package Statistics | |
---|---|
Total Downloads: | 25 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Backup your application and database data to local filesystem.
This package use spatie/db-dumper to dump database data. For supporting database type, please check here and make sure meets the requirement.
run composer require command composer require juice/backups
register \Juice\Backups\BackupsServiceProvider::class
service provider
copy config file and set it up
Laravel - php artisan vendor:publish --provider="Juice\Backups\BackupsServiceProvider"
Lumen - cp vendor/juice/backups/config/juice-backups.php config/
(make sure config directory exist)
run setup command php artisan backup:setup
done
All you need to do is add run
and cleanup
command to schedule method.
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('backup:run')->hourly();
$schedule->command('backup:cleanup')->dailyAt('01:30');
}
You can find more schedule information here.