diff options
| author | mo k <mo@mokhan.ca> | 2012-08-14 08:01:35 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-08-14 08:01:35 -0600 |
| commit | ebe6a9aa5fd30d02e2b68ad7a02647a9caf254cd (patch) | |
| tree | 5f67cdfce0a0d4830c2104c10e0b3ae5c8510a32 | |
| parent | b667cee5868f8529801bf03eb6cbb2051f2eaedf (diff) | |
create symlink to last backup
| -rw-r--r-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
