Module: BR

Defined in:
lib/brbackup.rb

Overview

Usage: Simple: restores bleacherreport_production from production to staging db

$ brbackup -f prod_br --clone bleacherreport

More examples: Specifying more options

$ brbackup -f prod_ss --clone cmservice --logger /tmp/brbackup.log -c .mysql.backups.yml 
$ brbackup -f prod_ss --clone cmservice --logger /tmp/brbackup.log -c .mysql.backups.yml

Notes: Format: <bucket_name>/<env>.<db>/<filename> Example : ey-backup-fe5a050b997d.s3.amazonaws.com/…

prod_br.bleacherreport_production/bleacherreport_production.2010-03-07T09-10-01.sql.gz

The –clone option only needs the prefix of the database name because the amazon searches based on the prefix of <env>.<db> The filename of the dumpfile is then taken and then gsubed _production -> _staging

Defined Under Namespace

Classes: Backups, DatabaseEngine, MysqlDatabase