wordpress_config_parser 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/backup-wordpress-db +6 -1
- data/lib/wordpress_config_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d740393b7f1303d36e5edb50aee40c0aea0a4ded
|
4
|
+
data.tar.gz: 120054375a99a66d2e00d97af104182ef0cafce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b32a47273bb823d3466de4d53fcb4b4bcda8818d4517d43703b5567d89e8f1c4ff3111b30b255813e3d98c29fc15f25a2e1794bb0939b3783d8d448f8adaf4
|
7
|
+
data.tar.gz: 40530f368b838f3d0c075cb1834f403a30964e5c2e13a2496cad1fbd27caaf724ba9c3182e73a9f6655c84d649e43d3fe80258837de6c39ed964ba16787d9167
|
data/bin/backup-wordpress-db
CHANGED
@@ -37,6 +37,11 @@ def run_command(command)
|
|
37
37
|
end
|
38
38
|
|
39
39
|
|
40
|
+
def datetime_stamp
|
41
|
+
Time.now.strftime('%Y-%m-%d_%H-%M-%S')
|
42
|
+
end
|
43
|
+
|
44
|
+
|
40
45
|
home = ENV['HOME']
|
41
46
|
output_dir = File.join(home, 'sql-backups')
|
42
47
|
blognames = ARGV
|
@@ -45,7 +50,7 @@ blognames.each do |blogname|
|
|
45
50
|
|
46
51
|
blog_dir = File.join(home, 'public_html', blogname)
|
47
52
|
parser = WordpressConfigParser::Parser.new(blog_dir)
|
48
|
-
outfilespec = File.join(output_dir, "#{blogname}-db-backup.sql")
|
53
|
+
outfilespec = File.join(output_dir, "#{blogname}-db-backup-#{datetime_stamp}.sql")
|
49
54
|
|
50
55
|
user = Shellwords.escape(parser.db_user)
|
51
56
|
password = Shellwords.escape(parser.db_password)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordpress_config_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Bennett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|