summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-08-14 07:51:53 -0600
committermo k <mo@mokhan.ca>2012-08-14 07:51:53 -0600
commitb667cee5868f8529801bf03eb6cbb2051f2eaedf (patch)
tree42407041a8d7c7f1d81130d194e25e0f241ee912 /Rakefile
parent4acda113a6157fe89055d4c8d46b56b38bd93039 (diff)
start to build restore task to restore prod to staging.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index a239887d..72ed234a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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
+