PHPackages                             luiz-albertoni/dynamic-mysql-db-backup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. luiz-albertoni/dynamic-mysql-db-backup

ActivePhpunit[File &amp; Storage](/categories/file-storage)

luiz-albertoni/dynamic-mysql-db-backup
======================================

Dynamic save mysql dumps to your specific Storage

04.1k↓89.6%PHP

Since Sep 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/luiz-albertoni/DynamicMysqlDataBaseBackup)[ Packagist](https://packagist.org/packages/luiz-albertoni/dynamic-mysql-db-backup)[ RSS](/packages/luiz-albertoni-dynamic-mysql-db-backup/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

DynamicMysqlDataBaseBackup
==========================

[](#dynamicmysqldatabasebackup)

Overview
--------

[](#overview)

The DynamicMysqlDatabaseBackup is a Laravel package to dynamically take a dump from your Mysql database and storage to a filesystem (local filesystems, Amazon S3, and Rackspace Cloud Storage). It also allow the user to configurate which environment (local, dev, stage, prod) it should take a dump, permit the user storage the dump compressing to Zip format and the user is able to configure how many days the dump file should remain in the storage, so it dynamically storage and remove the backup files through Laravel's Scheduler.

Install
-------

[](#install)

Composer install

```
composer require luiz-albertoni/dynamic-mysql-db-backup

```

Edit app/config/app.php to add the DynamicMysqlDumpServiceProvider under the 'providers' Array

```
Albertoni\DynamicMysqlDataBaseBackup\DynamicMysqlDumpServiceProvider::class,

```

Publish the configuration

```
php artisan vendor:publish --provider="Albertoni\DynamicMysqlDataBaseBackup\DynamicMysqlDumpServiceProvider" --tag='config' --force

```

Set Scheduler to run the package. Add the code below in App\\Console\\Kernel inside the schedule method.

```
 $schedule->call(function () {
            DynamicMysqlFacade::runDump();
        })->daily();

```

Configuration File
------------------

[](#configuration-file)

Config file name : dynamic-mysql-dump.php

```
