2017 © Pedro PelĂĄez
 

symfony-bundle backup-commands-bundle

Provides backup commands for your Symfony application, with the ability to push backup files to a dropbox

image

hmillet/backup-commands-bundle

Provides backup commands for your Symfony application, with the ability to push backup files to a dropbox

  • Wednesday, March 7, 2018
  • by hmillet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,119 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Hmillet Backup Commands Bundle

This bundle provides symfony console commands that allow you to backup your database and your files in your dropbox, (*1)

SensioLabsInsight, (*2)

Installation

Step 1

Using Composer

Add the following code to your composer.json :, (*3)

"require": {
    ...
    "hmillet/backup-commands-bundle": "dev-master"
    ...
},

Run a Composer update, (*4)

$ php composer.phar update

Step 2

Register the bundle in the AppKernel.php file :, (*5)

public function registerBundles()
{
    $bundles = array(
        ...
        new Hmillet\BackupCommandsBundle\HmilletBackupCommandsBundle(),
        ...
    );

    return $bundles;
}

Step 3 (optionnal)

Add parameters and configuration for the bundle, so it can read and write to your dropbox., (*6)

First of all, you have to get an access token. In order to get it, just run :, (*7)

php app/console dropbox:setup

in app/config/parameters.yml-dist (otherwise, "composer.phar update" will remove your parameter from parameters.yml), add the line :, (*8)

backup_dropbox_access_token: ~

in app/config/parameters.yml, add the line given by the above command :, (*9)

backup_dropbox_access_token: your token

in app/config/config.yml, add the lines :, (*10)

hmillet_backup_commands:
    dropbox:
        access_token: %backup_dropbox_access_token%

Requirements

This bundle needs (in local and remote server), (*11)

  • mysql (commandline)
  • mysqldump (commandline)
  • bunzip2 (commandline)

See the Getting Started page of the dropbox-sdk-php library., (*12)

Command line

Now from your console you can run, (*13)

./app/console db:dump

and see that a new file has been saved in folder /app/tmp/dump with an hard link to the newest one., (*14)

You can run, (*15)

./app/console db:restore

and choose which file you want to restore., (*16)

The Versions

07/03 2018

dev-master

9999999-dev https://github.com/hmillet/backupcommands

Provides backup commands for your Symfony application, with the ability to push backup files to a dropbox

  Sources   Download

MIT

The Requires

 

by Fabio Fabbrucci
by Hervé Millet

database doctrine mysql backup dropbox

07/03 2018

v3.0

3.0.0.0 https://github.com/hmillet/backupcommands

Provides backup commands for your Symfony application, with the ability to push backup files to a dropbox

  Sources   Download

MIT

The Requires

 

by Fabio Fabbrucci
by Hervé Millet

database doctrine mysql backup dropbox

26/06 2017

v2.1

2.1.0.0 https://github.com/hmillet/backupcommands

Provides backup commands for your Symfony application, with the ability to push backup files to a dropbox

  Sources   Download

MIT

The Requires

 

by Fabio Fabbrucci
by Hervé Millet

database doctrine mysql backup dropbox

03/03 2016

v2.0

2.0.0.0 https://github.com/hmillet/backupcommands

Provides backup commands for your Symfony application, with the ability to push backup files to a dropbox

  Sources   Download

MIT

The Requires

 

by Fabio Fabbrucci
by Hervé Millet

database doctrine mysql backup dropbox