Skip to content

Instantly share code, notes, and snippets.

@mbailey
Created July 16, 2011 12:31
Show Gist options
  • Save mbailey/1086308 to your computer and use it in GitHub Desktop.
Save mbailey/1086308 to your computer and use it in GitHub Desktop.
cap deprec:db:backup
[mbailey@island gs (master)]$ cap deprec:db:backup
triggering load callbacks
* executing `deprec:connect_canonical_tasks'
triggering start callbacks for `deprec:mysql:backup'
* executing `multistage:ensure'
*** Defaulting to `uat'
* executing `uat'
* executing `deprec:mysql:backup'
* executing "cd /srv/gemstalker/current && RAILS_ENV=production bundle exec rake deprec:db:backup"
servers: ["uat.int.failmode.com"]
[uat.int.failmode.com] executing command
** [out :: uat.int.failmode.com] mysqldump -u root gemstalker_production -Q --add-drop-table -O add-locks=FALSE -O lock-tables=FALSE | gzip -c > db/backups/production-20110716-223011.sql.gz
** [out :: uat.int.failmode.com] Created backup: db/backups/production-20110716-223011.sql.gz
** [out :: uat.int.failmode.com] Deleted 0 backups, 3 backups available
command finished in 9040ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment