csBackupPlugin - 0.0.1

csBackupPlugin is an attempt to provide a simple and easy backup solution for your project databases and files.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
csBackupPlugin 0.0.1beta for sf 1.4sf 1.3sf 1.2 and Doctrine MIT
Plugin image
1
user
Sign-in
to change
your status

csBackupPlugin is an attempt to provide a simple and easy backup solution for your project databases and files.

csBackupPlugin

csBackupPlugin is an attempt to provide a simple and easy backup solution for your database and files.

Currently Supported Databases:

Currently Supported File Sync Applications:

  • rsync
  • ftp
  • scp

Database Backup

php symfony backup:db will pull credentials directly from your databases.yml for the specified environment. If you desire special credentials for your backup script, you can pass them directly into the script php symgony backup:db --username=root --password=password --dbname='db1 db2'. If you want to set your script to import multiple databases, you can configure this in your app.yml

all:
  csBackup:
    mysql:
      dbname:  [db_prod, db_dev, db_staging]

Some other command options include:

  • email: to receive notification
  • command: to be called by the backup script (default is mysqldump, but could be mysql5dump)
  • backup_dir: absolute path or path relative to your project root for the backup files to be stored.

File Backup

This functionality is still in development, but works much the same way as the database backup task.
All options are configurable in app.yml and over-ridden by options passed to the task.
Some common options here are

  • source: an array of files/directories to be backed up
  • target: the location for the backup (false for local machine)
  • target_dir: path on the target machine for the backup files

To Do

  • add support for other database backup scripts
  • add support for file backup compression
  • clean up configuration structure

Developers

Name Status Email
gravatar Brent Shaffer lead moc.ecruosertnec <<ta>> reffahsb

License

Show source

Copyright (c) 2004-2006 Fabien Potencier

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.