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: '049bddca07a6623594fbe0c81c13da9d2ceb902f'
4
- data.tar.gz: cd56ed34159b98aa431977b293d6a8a1924500d3
3
+ metadata.gz: e32c08c7ea2188d1e99b604ad54be20edcd7a389
4
+ data.tar.gz: 639da3e322e0699403957c5a894a5bfce22c16fc
5
5
  SHA512:
6
- metadata.gz: f4b475aa037c8b28058cdcce8aa8e953688f63cfb324f7737c6b2917aa976a9773f1669290a103bc14aee251fa6b32a10b08b3642bcd8c513e566d041750e59d
7
- data.tar.gz: de001c799846ff841188677c0c1eacd0922ab7895f8a42d9b0432b0b4716368f25bc67d0fb537112ab51dfbbbb534442be7330b693f2a383ef7f9746b3f042c3
6
+ metadata.gz: dc17e2f4b0ca00d7908c7957d237f23e17e39294aaeb2e5af072225c2703babad7c48cf3a11b69dfd6d060ea81b4865d7b5863668186b7e117892d8fe505858c
7
+ data.tar.gz: c2b33b7d578f04b8df37903bea456bdd8a7431a8c6b3592a52cb10717f94f87a04f99bdf7e59cca9bd597865607b706d5b941ad49008afe7cad2e0a64443bcc8
@@ -1,3 +1,7 @@
1
+ ## 0.1.12 (2017-05-29)
2
+
3
+ Remove prefix path in mongodb dump archive
4
+
1
5
  ## 0.1.11 (2017-05-29)
2
6
 
3
7
  Fix path problem when compressing data after a mongodb remote backup
@@ -78,7 +78,7 @@ namespace :scalingo do
78
78
  end
79
79
 
80
80
  [cmd, output].each do |command|
81
- command << " && tar czfh #{archive_name DUMP_NAME} #{workdir}"
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} -d #{database} --dir #{workdir}/*"
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
@@ -1,3 +1,3 @@
1
1
  module ScalingoDbTasks
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scalingo_databases_rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scalingo