jma/backup-bundle

Lets make a backup of the database

1.0.3 2017-05-16 10:16 UTC

This package is auto-updated.

Last update: 2024-11-13 23:49:10 UTC


README

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

Installing via Composer

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

Using and Setting Up

Kernel.php

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

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

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

Then to access this setup call:

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