Skip to content

Create a backup file of the database in the backup directory using mysqldump

License

Notifications You must be signed in to change notification settings

dlevacher/BackupBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DlevacherBackupBundle

Provide a simple Symfony 2 Bundle to backup database via one command.

Installing via Composer

{
    "require": {
        "dlevacher/backup-bundle": "dev-master"
    }
}

Using and Setting Up

Kernel.php

public function registerBundles() {
  $bundles = array(
    new Dlevacher\BackupBundle()
  );
}

To provide custom backup dir. Add a config options in your config.yml, like:

dlevacher_backup:
    dir: "%kernel.root_dir%/backup"

Then to access this setup call:

$this->get('dlevacher_backup.dir');

About

Create a backup file of the database in the backup directory using mysqldump

Resources

License

Stars

Watchers

Forks

Packages

No packages published