Download the PHP package xedin/symfony2-db-backup-bundle without Composer
On this page you can find all versions of the php package xedin/symfony2-db-backup-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xedin/symfony2-db-backup-bundle
More information about xedin/symfony2-db-backup-bundle
Files in xedin/symfony2-db-backup-bundle
Package symfony2-db-backup-bundle
Short Description Be able to backup your database(s) and upload it to the cloud (Dropbox, CloudApp, GoogleDrive, etc.)
License MIT
Homepage https://github.com/dizda/CloudBackupBundle
Informations about the package symfony2-db-backup-bundle
BackupBundle
This bundle helps you to backup your databases and upload it to the cloud with only one Symfony2 command.
You can :
- Dump one database
- Dump all databases
- Different types of databases can be dumped each time
- Upload to several Cloud services
Databases supported :
- MongoDB
- MySQL
- PostgreSQL (excluding all_databases option)
Cloud services supported :
- Dropbox (with the help of DropboxUploader by hakre)
- CloudApp (thanks to CloudAPP-API-PHP-wrapper)
- Amazon S3 (through KnpGaufretteBundle)
- Google Drive (soon..)
But also :
- Local (through KnpGaufretteBundle)
- FTP (through KnpGaufretteBundle)
- sFTP (through KnpGaufretteBundle)
- GridFS (through KnpGaufretteBundle)
- MogileFS (through KnpGaufretteBundle)
are supported :-)
Installation (>=Symfony 2.1)
Composer
Download BackupBundle and its dependencies to the vendor directory. You can use Composer for the automated process:
Composer will install the bundle to vendor/dizda
directory.
Adding bundle to your application kernel
Configuration
Here is the default configuration for the bundle:
It is recommended to keep real values for logins and passwords in your parameters.yml file, e.g.:
Usage
The bundle adds one command to symfony console: app/console dizda:backup:start
which you execute periodically as a cron job.
For example the following cron command dumps your database every days at 6am on a server :
Info : To edit crontab for the user www-data (to prevent permissions error) :
or simply
Capifony integration
If you are using capifony for deployment you can grab the sample task for easier backups.
Add the following task in your deploy.rb file
This adds symfony:dizda:backup:start command to capifony. To launch it automatically on deploy you might use:
End
This bundle was inspired from KachkaevDropboxBackupBundle.
It is Symfony2.1, 2.2 and 2.3 compatible, I'll make some tests as soon as time permits.
Enjoy, PR are welcome !
All versions of symfony2-db-backup-bundle with dependencies
symfony/framework-bundle Version >=2.1
knplabs/gaufrette Version 0.2.*@dev
knplabs/knp-gaufrette-bundle Version 0.2.*@dev