scalingo_databases_rake_tasks 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e32c08c7ea2188d1e99b604ad54be20edcd7a389
|
4
|
+
data.tar.gz: 639da3e322e0699403957c5a894a5bfce22c16fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc17e2f4b0ca00d7908c7957d237f23e17e39294aaeb2e5af072225c2703babad7c48cf3a11b69dfd6d060ea81b4865d7b5863668186b7e117892d8fe505858c
|
7
|
+
data.tar.gz: c2b33b7d578f04b8df37903bea456bdd8a7431a8c6b3592a52cb10717f94f87a04f99bdf7e59cca9bd597865607b706d5b941ad49008afe7cad2e0a64443bcc8
|
data/CHANGELOG.md
CHANGED
@@ -78,7 +78,7 @@ namespace :scalingo do
|
|
78
78
|
end
|
79
79
|
|
80
80
|
[cmd, output].each do |command|
|
81
|
-
|
81
|
+
command << " && tar czfh #{archive_name DUMP_NAME} -C #{workdir} ."
|
82
82
|
end
|
83
83
|
|
84
84
|
puts "*** Executing #{output}"
|
@@ -89,7 +89,7 @@ namespace :scalingo do
|
|
89
89
|
def self.restore database, user, password, host
|
90
90
|
workdir = Dir.mktmpdir("scalingo-mongodb")
|
91
91
|
cmd = "tar xvzf #{archive_name DUMP_NAME} -C #{workdir}"
|
92
|
-
cmd << " && /usr/bin/env mongorestore --drop -h #{host}
|
92
|
+
cmd << " && /usr/bin/env mongorestore --drop -h #{host} --db #{database} --dir #{workdir}/*"
|
93
93
|
if user.blank?
|
94
94
|
output = cmd
|
95
95
|
else
|