https://github.com/pangolinkeys/backup-migrations
Extensions of the Laravel migrate and seed commands which takes a backup of the database before they run.
https://github.com/pangolinkeys/backup-migrations
artisan artisan-command backup backup-script laravel migrations php seed seeders
Last synced: 5 months ago
JSON representation
Extensions of the Laravel migrate and seed commands which takes a backup of the database before they run.
- Host: GitHub
- URL: https://github.com/pangolinkeys/backup-migrations
- Owner: pangolinkeys
- Created: 2018-06-12T13:17:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-13T15:20:00.000Z (about 8 years ago)
- Last Synced: 2025-07-29T08:32:45.113Z (11 months ago)
- Topics: artisan, artisan-command, backup, backup-script, laravel, migrations, php, seed, seeders
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# backup-migrations
Repository to perform a database backup before migrations and seeds are run.
Require this package using
```composer require pangolinkeys/backup-migrations```
Register the
```BackupMigrationsServiceProvider:class```
service provider in the applications providers array.
Run
```php artisan vendor:publish```
to publish the config file.
Run the commands
```php artisan migrate```
```php artisan db:seed```
as usual. In the background a backup dump of the database will be taken.
To restore the most recent backup run
```php artisan migrate:restore```
To specify a backup use the
```--file=```
option.