Download the PHP package salvatorecervone/backup-database without Composer
On this page you can find all versions of the php package salvatorecervone/backup-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salvatorecervone/backup-database
More information about salvatorecervone/backup-database
Files in salvatorecervone/backup-database
Package backup-database
Short Description This package manage backup-database
License MIT
Homepage https://github.com/SalvatoreCervone/backup-database
Informations about the package backup-database
LARAVEL BACKUP-DATABASE
BETA FOR BACKUP DATABASE
[!IMPORTANT] Actually V1 used for only backup MSSQL Database with Driver Sqlsrv
- [x] MSSQL
- [x] MySQL
- [ ] MongoDB
1 or more Database
You can backup one or more database in single operation. In config file you add connection name of you single or multi database and send backup. Example of single:
The backup config, for default, read DB_CONNECTION of your env file. From you connection name read any other paramters for execute backup If, example, user in env file not have permission for backup db you setting manually user and password in config file. example:
Delete
You can set, in config file, days_for_delete parameter. In this Parameter you set the days for delete previus databases. If you set days_for_delete = null delete is disabled. If you set days_for_delete = 0 you delete all previus databases.
Another parameters in config file is: soft_delete if you set this parameter to true you previus databases not would deleted but moved in folder called trash created in destinationpath
exemple:
in this case trash folder would created in c:\tmp -> c:\tmp\trash
For install:
For publish config
For test use
after
This return result in terminal and create backup in config.destinationpath
View
In the blade view
you have a list of your backup of your driver connection.
In this view you have information of backup and : one button for delete a single backup one button for lunch all backups
Artisan command
You find a command artisan for lunch backup for CLI or insert in schedulate
Schedule
If you schedule this, for example, every day you can use default laravel schedulate
All versions of backup-database with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0