Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 584 Bytes

File metadata and controls

37 lines (28 loc) · 584 Bytes

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');