dlevacher/backup-bundle

Lets make a backup of the database

0.1.0 2015-10-02 15:59 UTC

This package is not auto-updated.

Last update: 2024-10-02 19:33:06 UTC


README

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