在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):schickling/laravel-backup开源软件地址(OpenSource Url):https://github.com/schickling/laravel-backup开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):laravel-backupBackup and restore database support for Laravel 4 applications Installation
$ composer require schickling/backup
UsageBackupCreates a dump file in $ php artisan db:backup Use specific database$ php artisan db:backup --database=mysql Upload to AWS S3$ php artisan db:backup --upload-s3 your-bucket You can use the Uses the aws/aws-sdk-php-laravel package which needs to be configured. RestorePaths are relative to the app/storage/dumps folder. Restore a dump$ php artisan db:restore dump.sql List dumps$ php artisan db:restore ConfigurationSince version $ php artisan config:publish schickling/backup All settings are optional and have reasonable default values. return array(
// add a backup folder in the app/database/ or your dump folder
'path' => app_path() . '/database/backup/',
// add the path to the restore and backup command of mysql
// this exemple is if your are using MAMP server on a mac
// on windows: 'C:\\...\\mysql\\bin\\'
// on linux: '/usr/bin/'
// trailing slash is required
'mysql' => array(
'dump_command_path' => '/Applications/MAMP/Library/bin/',
'restore_command_path' => '/Applications/MAMP/Library/bin/',
),
// s3 settings
's3' => array(
'path' => 'your/s3/dump/folder'
)
// Use GZIP compression
'compress' => false,
); Dependencies...for MySQLYou need to have TODO - Upcoming Features
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论