diff options
| author | mo k <mo@mokhan.ca> | 2012-08-14 07:51:53 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-08-14 07:51:53 -0600 |
| commit | b667cee5868f8529801bf03eb6cbb2051f2eaedf (patch) | |
| tree | 42407041a8d7c7f1d81130d194e25e0f241ee912 /Rakefile | |
| parent | 4acda113a6157fe89055d4c8d46b56b38bd93039 (diff) | |
start to build restore task to restore prod to staging.
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -40,3 +40,12 @@ namespace :deploy do end end +task :restore do + # 1. backup prod database + #sh "cap production backup_db" + # 2. copy backup to staging + sh "ls -1tr db/backups/ | tail -n 1" + # 3. restore backup on staging + #sh "cap staging restore_db" +end + |
