dumper 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dumper/agent.rb +1 -1
- data/lib/dumper/database/mongodb.rb +1 -1
- data/lib/dumper/job.rb +2 -0
- data/lib/dumper/version.rb +1 -1
- metadata +2 -2
data/lib/dumper/agent.rb
CHANGED
@@ -5,7 +5,7 @@ module Dumper
|
|
5
5
|
FILE_EXT = 'tar.gz'
|
6
6
|
|
7
7
|
def command
|
8
|
-
"cd #{tmpdir} && #{dump_tool_path} #{connection_options} #{additional_options} && tar -czf #{filename} ."
|
8
|
+
"cd #{tmpdir} && #{dump_tool_path} #{connection_options} #{additional_options} && tar -czf #{filename} --exclude='#{filename}' ."
|
9
9
|
end
|
10
10
|
|
11
11
|
def connection_options
|
data/lib/dumper/job.rb
CHANGED
@@ -44,6 +44,8 @@ module Dumper
|
|
44
44
|
begin
|
45
45
|
pid, stdin, stdout, stderr = popen4(@database.command)
|
46
46
|
stdin.close
|
47
|
+
(out = stdout.read).empty? or log out, :debug
|
48
|
+
(err = stderr.read).empty? or log err, :error
|
47
49
|
rescue
|
48
50
|
Process.kill(:INT, pid) rescue SystemCallError
|
49
51
|
abort_with("dump error: #{$!}", :dump_error)
|
data/lib/dumper/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|