summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-08-14 08:01:35 -0600
committermo k <mo@mokhan.ca>2012-08-14 08:01:35 -0600
commitebe6a9aa5fd30d02e2b68ad7a02647a9caf254cd (patch)
tree5f67cdfce0a0d4830c2104c10e0b3ae5c8510a32
parentb667cee5868f8529801bf03eb6cbb2051f2eaedf (diff)
create symlink to last backup
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 72ed234a..547f9d20 100644
--- a/Rakefile
+++ b/Rakefile
@@ -44,7 +44,7 @@ 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"
+ sh "ln -s db/backups/`ls -rt db/backups/ | tail -n1` /db/backups/latest"
# 3. restore backup on staging
#sh "cap staging restore_db"
end