itgwiki_mirror 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/itgwiki_mirror_backup +1 -0
  2. metadata +4 -4
@@ -40,6 +40,7 @@ end.parse!
40
40
  # set user, host, port, and mirror target path from ARGV (port is optional)
41
41
  #
42
42
  begin
43
+ options[:user] = /^(.+)@)/.match(ARGV[0])[1]
43
44
  options[:host] = /@([^:]+)/.match(ARGV[0])[1]
44
45
  options[:port] = /:(\d+)/.match(ARGV[0])[1].to_i if /:.*:/.match ARGV[0]
45
46
  options[:rsync] = /:([^:]+$)/.match(ARGV[0])[1]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itgwiki_mirror
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Force
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: "0"
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
- description: "\n Use two scripts, itgwiki_mirror_backup and itgwiki_mirror_deploy, to\n maintain a read-only mirror of ITGwiki. itgwiki_mirror_backup runs\n periodically and automatically on the live instance of ITGwiki to create a\n backup and copy it to the mirror. itgwiki_mirror_deploy runs on the mirror\n and is triggered by itgwiki_mirror_backup, imports and adjusts the backup\n to be read-only, then deploys it on the mirror server. Requires rsync and\n mysqldump.\n "
48
+ description: "\n Use two scripts, itgwiki_mirror_backup and itgwiki_mirror_deploy, to\n maintain a read-only mirror of ITGwiki. itgwiki_mirror_backup runs\n periodically and automatically on the live instance of ITGwiki to create a\n backup and copy it to the mirror. itgwiki_mirror_deploy runs on the mirror\n and is triggered by itgwiki_mirror_backup, imports and adjusts the backup\n to be read-only, then deploys it on the mirror server. Requires rsync and\n mysqldump.\n\n IMPORTANT: database user passwords are visible as part of the command used\n to execute the backup and deploy processes. I recommend creating minimally\n empowered user accounts to execute backup and deploy tasks.\n "
49
49
  email: justin.force@gmail.com
50
50
  executables:
51
51
  - itgwiki_mirror_backup