Script to create and copy a production dump to your project root

Posted Almost 13 years ago. Visible to the public.

Soon after having written our shell-for script, we wanted to easily get dumps of our productions machines, too. This is how we do it:

dump-for staging [-s]

It will copy the dump to your project's tmp directory and name it according to the capistrano stage you're calling for, here: staging.dump. When you pass the optional -s option, the dump will automatically been sourced into your local development database.


This script is part of our geordi gem on github Show archive.org snapshot .

Dominik Schöler
Last edit
About 7 years ago
Deleted user #4117
License
Source code in this card is licensed under the MIT License.
Posted by Dominik Schöler to makandra dev (2011-05-27 17:02)