当前位置:网站首页>Scheduled backup of laravel 8 database
Scheduled backup of laravel 8 database
2022-06-09 21:16:00 【Results of persistence and effort】
composer install
composer require spatie/laravel-backupPublish profile , produce config/backup.php
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"stay App\Console\Kernel Write code
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
// Database backup per minute
$schedule->command('backup:run --disable-notifications')->everyMinute();
}stay config/filesystems.php Modify the backup save location ( Save to public Under the zip Next )
'disks' => [
'local' => [
'driver' => 'local',
'root' => public_path('zip'),
],Perform backup tasks
php artisan schedule:work边栏推荐
- Kubevirt network source code analysis (3) - virtual machine hot migration network
- Es automatic stop
- MediaTek: the market demand will not disappear, and the compound annual growth rate of revenue in the next three years will exceed 14%
- Database, looking at the operation training problem, I suddenly can't do it. Solve it
- Do your filial duty to make an old people's fall prevention alarm system for your family
- Dongle driven solution
- (上)苹果有开源,但又怎样呢?
- Kubernetes原生CICD:Tekton hello-world
- 区间值(单调栈)
- PaddleNLP通用信息抽取技术UIE【一】产业应用实例:信息抽取{实体关系抽取、中文分词、精准实体标。情感分析等}、文本纠错、问答系统、闲聊机器人、定制训练
猜你喜欢

Mysql异常:The server time zone value‘XXX'解决

浏览器无法打开百度,别的可以正常打开

How Bi makes SaaS products have a "sense of security" and "sensitivity" (Part I)

排序-快速排序

源代码数据防泄露解决方案分析

Example: use C # Net to teach you how to develop wechat official account (19) -- use wechat payment to transfer to wechat fans' change accounts
![Fedformer:frequency enhanced decomposedtransformer for long term series forecasting[still learning...]](/img/58/d73cbaaeefc255816fe8cdc7165419.png)
Fedformer:frequency enhanced decomposedtransformer for long term series forecasting[still learning...]

Typescript variable declaration

堆(优先队列)

MySQL exception: the server time zone value 'xxx' solution
随机推荐
Quickly understand the implementation of server IO
Configuration du serveur DHCP et de la connexion client
Kubernetes native cicd:tekton Hello World
Open source a nodejs firewall gadget
Share 10 tips on using reduce function
深入理解 Go Modules 的 go.mod 与 go.sum
Dataframe merge
Can abstract classes inherit entity classes?
Make money by doing sideline work. These popular we media platforms have made a lot of profits
力扣84-柱状图中最大的矩形(单调栈)
强烈推荐:数据标注平台doccano----简介、安装、使用、踩坑记录
MFC connection database shows no data source name found and no default driver specified
快速了解服务器IO的实现
paddleNLP-BUG和一些细节记录【一】
Unbutu configuring DHCP server and client connections
步调一致的朋友
Lambda Exception
Kubernetes原生CICD:Tekton hello-world
分享 16 个有用的 TypeScript 和 JS 技巧
03 Wireshark TCP