Download the PHP package amitavroy/backup-manager without Composer
On this page you can find all versions of the php package amitavroy/backup-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amitavroy/backup-manager
More information about amitavroy/backup-manager
Files in amitavroy/backup-manager
Package backup-manager
Short Description This Laravel package allows you to create a backup of your database. You can use any file system which Laravel supports like S3, FTP, local etc.
License
Informations about the package backup-manager
Backup-Manager
This Laravel package allows you to create a backup of your database. You can use any file system which Laravel supports like S3, FTP, local etc.
Installation
Auto discovery
If you are using Laravel 5.6, then this package supports auto-discovery and so you don't need to do anything and can directly skip to the configuration part.
Normal installation
To install the package, run the following command
Add the service provider inside app.php
After adding the service provider, publish the config file using
Configuration
The config file contains documentation on folder structure and other details. If you are using any other file system like S3, you will need to ensure the env variables are setup for the backup to work.
Some important env variables explained:
Variable name | Description | Default |
---|---|---|
BACKUP_FOLDER_NAME | This is the folder name where the backups will be stored. | DB_DATABASE env |
BACKUP_DB_FILENAME | This is the file name used along with time at the end | DB_DATABASE env |
BACKUP_STORAGE_DRIVER | This is the Storage disk which will be used to upload the file. | local |
If you are using S3 file system you will need to run the below command to pull the package
For this package to automatically take backup of the database, you need to add the command in you Kernel.php inside the app\Console folder.
Example: