stellar-core-backup 0.0.4 → 0.0.5
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: 036788c4ca590787bf980fb86d5a766f8ffc0cff
|
4
|
+
data.tar.gz: 2912860cd046d4fb50cae3572b9af9b5c8668da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0225b353f3638ea8ba37de50e37e00ac710aff9541384f8bbf881b30bb260e3fa1007f90ebd9b3e18816ca3498b399882a3c83603b40f8782954be8dfcee581
|
7
|
+
data.tar.gz: 3cca8e3f4456cfc256e99951b612933bd0d572dc0756f14a75c66b58b6bbbf740d1e2657e2bd71ddd19940665b21f3f5ae9c2b4f2ec532ae38c2b971806dc979
|
@@ -23,7 +23,7 @@ module StellarCoreBackup
|
|
23
23
|
def pg_dump()
|
24
24
|
cmd = StellarCoreBackup::Cmd.new(@working_dir)
|
25
25
|
puts "info: connecting (#{get_db_details(@config.get('core_config')).gsub(/password=(.*)/, 'password=********')})"
|
26
|
-
pg_dump = cmd.run('pg_dump', ['--dbname', @dbname, '--format', 'd', '--file', "#{@working_dir}/core-db/"])
|
26
|
+
pg_dump = cmd.run('pg_dump', ['--dbname', @dbname, '--format', 'd', '--jobs', "#{StellarCoreBackup::Utils.num_cores?()}", '--file', "#{@working_dir}/core-db/"])
|
27
27
|
if pg_dump.success then
|
28
28
|
puts "info: database backup complete"
|
29
29
|
end
|
@@ -24,7 +24,7 @@ module StellarCoreBackup::Restore
|
|
24
24
|
Contract nil => Bool
|
25
25
|
def pg_restore()
|
26
26
|
# we are restoring to public schema
|
27
|
-
pg_restore = @cmd.run('pg_restore', ['-n', 'public', '-c', '-d', @dbname, 'core-db/'])
|
27
|
+
pg_restore = @cmd.run('pg_restore', ['-n', 'public', '--jobs', "#{StellarCoreBackup::Utils.num_cores?()}", '-c', '-d', @dbname, 'core-db/'])
|
28
28
|
if pg_restore.success then
|
29
29
|
return true
|
30
30
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stellar-core-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Llewellyn-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contracts
|