Backup and restore database support for Laravel 4 applications
Backup and restore database support for Laravel 4 applications
Backup and restore database support for Laravel 4 applications
$ composer require schickling/backupSchickling\Backup\BackupServiceProvider to your config/app.phpCreates a dump file in app/storage/dumps
$ php artisan db:backup$ php artisan db:backup --database=mysql$ php artisan db:backup --upload-s3 your-bucketYou can use the --keep-only-s3 option if you don't want to keep a local copy of the SQL dump.
Uses the aws/aws-sdk-php-laravel package which needs to be configured.
Paths are relative to the app/storage/dumps folder.
$ php artisan db:restore dump.sql$ php artisan db:restoreSince version 0.5.0 this package follows the recommended standard for configuration. In order to configure this package please run the following command:
$ php artisan config:publish schickling/backupAll settings are optional and have reasonable default values.
…You need to have mysqldump installed. It's usually already installed with MySQL itself.
db:restore WRONGFILENAME more detailed error messagedb:backup FILENAME set title for dumpNo open issues yet, or sync has not completed.