Download the PHP package tsslabs/cloud-backup-bundle without Composer
On this page you can find all versions of the php package tsslabs/cloud-backup-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cloud-backup-bundle
CloudBackupBundle
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 CloudBackupBundle 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
In addition, using -F or --folder option the folders also will be added to the backup.
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 cloud-backup-bundle with dependencies
symfony/framework-bundle Version >=2.1
knplabs/gaufrette Version 0.2.*@dev
knplabs/knp-gaufrette-bundle Version 0.2.*@dev