astrails-safe 0.0.2 → 0.0.3
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.
- data/bin/astrails-safe +11 -4
- data/safe.gemspec +1 -2
- metadata +1 -11
data/bin/astrails-safe
CHANGED
@@ -155,16 +155,23 @@ def create_gpg_password_file(pass)
|
|
155
155
|
end
|
156
156
|
|
157
157
|
|
158
|
-
def mysql_skip_tables(conf, db)
|
158
|
+
def mysql_skip_tables(conf, db, cmd)
|
159
159
|
if skip_tables = conf[:skip_tables]
|
160
|
-
skip_tables.
|
160
|
+
skip_tables.each do |t|
|
161
|
+
cmd << "--ignore-table=#{db}.#{t} "
|
162
|
+
end
|
161
163
|
end
|
164
|
+
cmd
|
162
165
|
end
|
163
166
|
|
167
|
+
def mysqldump_extra_options(conf, cmd)
|
168
|
+
cmd << conf[:mysqldump_options] << " " if conf[:mysqldump_options]
|
169
|
+
cmd
|
170
|
+
end
|
164
171
|
def mysqldump(conf, db)
|
165
172
|
cmd = "mysqldump --defaults-extra-file=#{create_mysql_password_file(conf)} "
|
166
|
-
cmd
|
167
|
-
cmd
|
173
|
+
cmd = mysqldump_extra_options(conf, cmd)
|
174
|
+
cmd = mysql_skip_tables(conf, db, cmd)
|
168
175
|
cmd << " #{db} "
|
169
176
|
|
170
177
|
path = conf[:path]
|
data/safe.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "safe"
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.3"
|
4
4
|
s.date = "2009-03-03"
|
5
5
|
s.summary = "Astrails Safe"
|
6
6
|
s.email = "we@astrails.com"
|
@@ -16,6 +16,5 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.test_files = []
|
18
18
|
s.add_dependency("aws-s3")
|
19
|
-
s.add_dependency("yaml")
|
20
19
|
end
|
21
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: astrails-safe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Astrails Ltd.
|
@@ -22,16 +22,6 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: "0"
|
24
24
|
version:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: yaml
|
27
|
-
type: :runtime
|
28
|
-
version_requirement:
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: "0"
|
34
|
-
version:
|
35
25
|
description: Simple tool to backup MySQL databases and filesystem locally or to Amazon S3 (with optional encryption)
|
36
26
|
email: we@astrails.com
|
37
27
|
executables:
|