sql backup

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

sql backup

文章 yehlu »

https://docs.spatie.be/laravel-backup/v5/introduction

代碼: 選擇全部

composer require spatie/laravel-backup
app/config

代碼: 選擇全部

Spatie\Backup\BackupServiceProvider::class,

代碼: 選擇全部

php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
config/database.php

代碼: 選擇全部

            'dump' => [
        		   'dump_binary_path' => '/usr/local/bin/mysqldump', // only the path, so without `mysqldump` or `pg_dump`
        		   'use_single_transaction',
        		   'timeout' => 60 * 5, // 5 minute timeout
        		   //'exclude_tables' => ['table1', 'table2'],
        		   'add_extra_option' => '--optionname=optionvalue',
        		]
回覆文章

回到「laravel」