Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salmanzafar949/laravel-db-backup
A laravel 5 and laravel 6 package lets you create database backup with a single command.
https://github.com/salmanzafar949/laravel-db-backup
Last synced: 6 days ago
JSON representation
A laravel 5 and laravel 6 package lets you create database backup with a single command.
- Host: GitHub
- URL: https://github.com/salmanzafar949/laravel-db-backup
- Owner: salmanzafar949
- Created: 2019-10-01T13:43:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T12:15:26.000Z (almost 5 years ago)
- Last Synced: 2024-09-18T16:52:04.554Z (15 days ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Laravel Database Backup
A Laravel 5 and Laravel 6 library that creates backup of your database with a single command
## Installation
```
composer require salmanzafar/laravel-db-backup
```
## Features* Easy configuration db backup in a single command
* Storage Customization (e.g s3 (s3 support is in development), local etc)
* Email about DbBackup completion (in development).## Enable the package (Optional)
This package implements Laravel's auto-discovery feature. After you install it the package provider and facade are added automatically for laravel >= 5.5.## Configuration
Publish the configuration fileThis step is required only if you want to make changes in config file
```
php artisan vendor:publish --provider="Salman\DbBackup\DbBackupServiceProvider"
```#### Config File located at ``config/dbbackup.php``
```php
'public', // disk e.g local, public, s3 etc
'visibility' => 'public', // leave it null for private
'folder' => 'dbbackup' // folder name for backup
];
```
## UsageAfter publishing the configuration file just run the below command
```
php artisan db:backup
```Just it, Now in ```storage/app/yourbackupfoldername``` you should have your ```db dump```.
#### This package currently support ``Local Storage backup``
Tested on ```Laravel 6.1.0``` and ```Php 7.3```