summaryrefslogtreecommitdiff
path: root/config/recipes/postgresql.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-08-09 14:13:05 -0600
committermo khan <mo@mokhan.ca>2013-08-09 14:13:05 -0600
commit690f92d17a2ae743cca49a56c41cdbd2b7e1323e (patch)
treec32f349ec1a44f8b47786f525eb4d15807de3c66 /config/recipes/postgresql.rb
parentfc961ccd9c2d3d78eb0ac8b13c0bb3bd29bd95f4 (diff)
create symlink to last database backup for easy restores locally
Diffstat (limited to 'config/recipes/postgresql.rb')
-rw-r--r--config/recipes/postgresql.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/recipes/postgresql.rb b/config/recipes/postgresql.rb
index ae09ba0..aa8b1dc 100644
--- a/config/recipes/postgresql.rb
+++ b/config/recipes/postgresql.rb
@@ -42,5 +42,6 @@ namespace :postgresql do
channel.send_data "#{postgresql_password}\n"
end
download("#{backup_path}/#{filename}", "tmp/#{filename}", :via => :scp)
+ run_locally "cd tmp; ln -s #{filename} database.dump"
end
end