webtranslateit-safe 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 622f6f352864fc8dc4b3938346a25a46a47874e3b439938ed3d9b177218f2564
4
- data.tar.gz: fa08df6cdc398f48a2bb5f8c7fd2289bf50b9cf6c3f6aaa39b542f8143363357
3
+ metadata.gz: 12f0e6be06240bcba9f44a010c0885c9d29459ae7299e91de82c62f13f2d37ec
4
+ data.tar.gz: aa10fc13934f1ccfa3680a786998973152c317d411227efe9107b7dea0ec8312
5
5
  SHA512:
6
- metadata.gz: 458c754bea2197d46e29e9405705af3961a03b1fec4f2f72e994c022c5549412ff4f1baa00cbd868d36df07a0d94a2cda7007b6fb447b739ed36df0efefd63e5
7
- data.tar.gz: e70216d1c71e82b4d980a264e50f411b1c392a9d0f26f60605e71a8dc633199a4e195bed14786e858ff84aa415e90a69204f45869c8ea1a7850583b781591349
6
+ metadata.gz: 4c18458f0b32bc78fe6b98cc2fcbae409419da81d1dde870b8aae32a17256523a0f86d667ea5a714b5834cfbbd8653b71576e6b96d6976ae17197c17245609ad
7
+ data.tar.gz: 36bd512b2581664fadbb55712936ee4b106f59d4daa93873306be81cbe925744c83f780eec0e224da283987cec779837620869158834407dd247fb7f27e08347
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.4.9 - 2023-07-06
2
+
3
+ * Use pigz instead of gzip when available on system to speed up compression time.
1
4
  ## 0.4.8 - 2023-07-05
2
5
 
3
6
  * Remove svndump feature.
data/README.markdown CHANGED
@@ -152,7 +152,6 @@ safe do
152
152
  s3 100
153
153
  cloudfiles 100
154
154
  sftp 100
155
- scp 100
156
155
  end
157
156
 
158
157
  mysqldump do
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WebTranslateIt
4
+
5
+ module Safe
6
+
7
+ class Pigz < Pipe
8
+
9
+ protected
10
+
11
+ def post_process
12
+ @backup.compressed = true
13
+ end
14
+
15
+ def pipe
16
+ '|pigz'
17
+ end
18
+
19
+ def extension
20
+ '.gz'
21
+ end
22
+
23
+ def active?
24
+ !@backup.compressed && !(find_executable 'pigz').nil?
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+
31
+ end
@@ -5,8 +5,8 @@ require 'net/scp'
5
5
  require 'tmpdir'
6
6
  require 'fileutils'
7
7
  require 'benchmark'
8
-
9
8
  require 'tempfile'
9
+ require 'mkmf'
10
10
 
11
11
  require 'web_translate_it/safe/tmp_file'
12
12
 
@@ -26,6 +26,7 @@ require 'web_translate_it/safe/mongodump'
26
26
  require 'web_translate_it/safe/pipe'
27
27
  require 'web_translate_it/safe/gpg'
28
28
  require 'web_translate_it/safe/gzip'
29
+ require 'web_translate_it/safe/pigz'
29
30
 
30
31
  require 'web_translate_it/safe/sink'
31
32
  require 'web_translate_it/safe/local'
@@ -33,6 +34,11 @@ require 'web_translate_it/safe/s3'
33
34
  require 'web_translate_it/safe/cloudfiles'
34
35
  require 'web_translate_it/safe/sftp'
35
36
 
37
+ # Keeps mkmf from littering STDOUT
38
+ MakeMakefile::Logging.quiet = true
39
+ # Keeps mkmf from creating a mkmf.log file on current path
40
+ MakeMakefile::Logging.logfile(File::NULL)
41
+
36
42
  module WebTranslateIt
37
43
 
38
44
  module Safe
@@ -51,7 +57,7 @@ module WebTranslateIt
51
57
  next unless collection = config[*path]
52
58
 
53
59
  collection.each do |name, c|
54
- klass.new(name, c).backup.run(c, :gpg, :gzip, :local, :s3, :cloudfiles, :sftp)
60
+ klass.new(name, c).backup.run(c, :gpg, :pigz, :gzip, :local, :s3, :cloudfiles, :sftp)
55
61
  end
56
62
  end
57
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-safe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Briere
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-07-05 00:00:00.000000000 Z
12
+ date: 2023-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-s3
@@ -68,9 +68,9 @@ dependencies:
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  description: |
71
- WebTranslateIt-Safe is a simple tool to backup databases (MySQL and PostgreSQL) and just files.
72
- Backups can be stored locally or remotely and can be enctypted.
73
- Remote storage is supported on Amazon S3, Rackspace Cloud Files, or just plain SFTP.
71
+ WebTranslateIt-Safe is a simple tool to backup databases (MySQL and PostgreSQL) and files.
72
+ Backups can be stored locally or remotely and can be encrypted.
73
+ Remote storage is supported on Amazon S3, Rackspace Cloud Files, or just plain SFTP/SCP.
74
74
  email:
75
75
  - support@webtranslateit.com
76
76
  executables:
@@ -93,6 +93,7 @@ files:
93
93
  - lib/web_translate_it/safe/mongodump.rb
94
94
  - lib/web_translate_it/safe/mysqldump.rb
95
95
  - lib/web_translate_it/safe/pgdump.rb
96
+ - lib/web_translate_it/safe/pigz.rb
96
97
  - lib/web_translate_it/safe/pipe.rb
97
98
  - lib/web_translate_it/safe/s3.rb
98
99
  - lib/web_translate_it/safe/sftp.rb