prlbackup 1.1.2 → 1.1.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/.gitignore CHANGED
@@ -4,3 +4,4 @@
4
4
  Gemfile.lock
5
5
  pkg/*
6
6
  vendor/ruby
7
+ man/prlbackup.1.html
data/Guardfile CHANGED
@@ -1,6 +1,3 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
1
  guard 'rspec', :version => 2, :cli => '--color' do
5
2
  watch(%r{^spec/.+_spec\.rb$})
6
3
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
@@ -14,8 +11,3 @@ guard 'cucumber' do
14
11
  watch(%r{^features/support/.+$}) { 'features' }
15
12
  watch(%r{^features/steps/.+$}) { 'features' }
16
13
  end
17
-
18
- guard 'ronn', :cli => '--manual="PRLBACKUP MANUAL" --style=toc' do
19
- watch(%r{^man/.+\.ronn$})
20
- watch(%r{^man/.+\.(md|markdown)$})
21
- end
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'cucumber/rake/task'
3
3
  require 'rspec/core/rake_task'
4
+ require 'prlbackup/version'
4
5
 
5
6
  Cucumber::Rake::Task.new(:features) do |t|
6
7
  t.cucumber_opts = "--format pretty"
@@ -11,4 +12,9 @@ RSpec::Core::RakeTask.new do |t|
11
12
  t.pattern = "./spec/**/*_spec.rb"
12
13
  end
13
14
 
15
+ # Build the manpage.
16
+ task :ronn do
17
+ sh "bundle exec ronn --manual='PRLBACKUP V#{PrlBackup::VERSION}' --style=toc man/prlbackup.1.ronn"
18
+ end
19
+
14
20
  task :default => :features
@@ -1,3 +1,3 @@
1
1
  module PrlBackup
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
data/man/prlbackup.1 CHANGED
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "PRLBACKUP" "1" "May 2012" "" "PRLBACKUP MANUAL"
4
+ .TH "PRLBACKUP" "1" "May 2012" "" "PRLBACKUP V1.1.3"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBprlbackup\fR \- an awesome backup tool for Parallels Server Virtual Machines
data/prlbackup.gemspec CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency 'aruba-doubles', '~> 1.2.1'
24
24
  s.add_development_dependency 'guard-cucumber', '>= 0.7.5'
25
25
  s.add_development_dependency 'guard-rspec', '>= 0.5.1'
26
- s.add_development_dependency 'guard-ronn', '>= 0.1.2'
27
26
  s.add_development_dependency 'ronn', '>= 0.7.3'
28
27
  s.add_development_dependency 'rake'
29
28
  s.add_development_dependency 'rb-fsevent', '>= 0.9.0' if RUBY_PLATFORM =~ /darwin/i
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prlbackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-02 00:00:00.000000000Z
12
+ date: 2012-05-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-cli
16
- requirement: &70294085963400 !ruby/object:Gem::Requirement
16
+ requirement: &70149533786540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70294085963400
24
+ version_requirements: *70149533786540
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: gem-man
27
- requirement: &70294085961160 !ruby/object:Gem::Requirement
27
+ requirement: &70149533785600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.3.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70294085961160
35
+ version_requirements: *70149533785600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cucumber
38
- requirement: &70294085959680 !ruby/object:Gem::Requirement
38
+ requirement: &70149533784760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.1.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70294085959680
46
+ version_requirements: *70149533784760
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: aruba
49
- requirement: &70294085958680 !ruby/object:Gem::Requirement
49
+ requirement: &70149533783860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.4.11
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70294085958680
57
+ version_requirements: *70149533783860
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: aruba-doubles
60
- requirement: &70294085949480 !ruby/object:Gem::Requirement
60
+ requirement: &70149533779320 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.2.1
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70294085949480
68
+ version_requirements: *70149533779320
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-cucumber
71
- requirement: &70294085948560 !ruby/object:Gem::Requirement
71
+ requirement: &70149533778340 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.7.5
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70294085948560
79
+ version_requirements: *70149533778340
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: guard-rspec
82
- requirement: &70294085947860 !ruby/object:Gem::Requirement
82
+ requirement: &70149533777420 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,21 +87,10 @@ dependencies:
87
87
  version: 0.5.1
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70294085947860
91
- - !ruby/object:Gem::Dependency
92
- name: guard-ronn
93
- requirement: &70294085947080 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: 0.1.2
99
- type: :development
100
- prerelease: false
101
- version_requirements: *70294085947080
90
+ version_requirements: *70149533777420
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: ronn
104
- requirement: &70294085946220 !ruby/object:Gem::Requirement
93
+ requirement: &70149533776180 !ruby/object:Gem::Requirement
105
94
  none: false
106
95
  requirements:
107
96
  - - ! '>='
@@ -109,10 +98,10 @@ dependencies:
109
98
  version: 0.7.3
110
99
  type: :development
111
100
  prerelease: false
112
- version_requirements: *70294085946220
101
+ version_requirements: *70149533776180
113
102
  - !ruby/object:Gem::Dependency
114
103
  name: rake
115
- requirement: &70294085945520 !ruby/object:Gem::Requirement
104
+ requirement: &70149533775380 !ruby/object:Gem::Requirement
116
105
  none: false
117
106
  requirements:
118
107
  - - ! '>='
@@ -120,10 +109,10 @@ dependencies:
120
109
  version: '0'
121
110
  type: :development
122
111
  prerelease: false
123
- version_requirements: *70294085945520
112
+ version_requirements: *70149533775380
124
113
  - !ruby/object:Gem::Dependency
125
114
  name: rb-fsevent
126
- requirement: &70294085944620 !ruby/object:Gem::Requirement
115
+ requirement: &70149533773760 !ruby/object:Gem::Requirement
127
116
  none: false
128
117
  requirements:
129
118
  - - ! '>='
@@ -131,7 +120,7 @@ dependencies:
131
120
  version: 0.9.0
132
121
  type: :development
133
122
  prerelease: false
134
- version_requirements: *70294085944620
123
+ version_requirements: *70149533773760
135
124
  description: an awesome backup tool for Parallels Server Virtual Machines
136
125
  email:
137
126
  - bjoernalbers@googlemail.com
@@ -157,7 +146,6 @@ files:
157
146
  - lib/prlbackup/version.rb
158
147
  - lib/prlbackup/virtual_machine.rb
159
148
  - man/prlbackup.1
160
- - man/prlbackup.1.html
161
149
  - man/prlbackup.1.ronn
162
150
  - prlbackup.gemspec
163
151
  - spec/prlbackup/cli_spec.rb
@@ -178,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
166
  version: '0'
179
167
  segments:
180
168
  - 0
181
- hash: -2854160229902892103
169
+ hash: 1653831612304394743
182
170
  required_rubygems_version: !ruby/object:Gem::Requirement
183
171
  none: false
184
172
  requirements:
@@ -187,13 +175,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
175
  version: '0'
188
176
  segments:
189
177
  - 0
190
- hash: -2854160229902892103
178
+ hash: 1653831612304394743
191
179
  requirements: []
192
180
  rubyforge_project:
193
181
  rubygems_version: 1.8.10
194
182
  signing_key:
195
183
  specification_version: 3
196
- summary: prlbackup-1.1.2
184
+ summary: prlbackup-1.1.3
197
185
  test_files:
198
186
  - features/cleanup.feature
199
187
  - features/create_backups.feature
data/man/prlbackup.1.html DELETED
@@ -1,196 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv='content-type' value='text/html;charset=utf8'>
5
- <meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
6
- <title>prlbackup(1) - an awesome backup tool for Parallels Server Virtual Machines</title>
7
- <style type='text/css' media='all'>
8
- /* style: man */
9
- body#manpage {margin:0}
10
- .mp {max-width:100ex;padding:0 9ex 1ex 4ex}
11
- .mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
12
- .mp h2 {margin:10px 0 0 0}
13
- .mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
14
- .mp h3 {margin:0 0 0 4ex}
15
- .mp dt {margin:0;clear:left}
16
- .mp dt.flush {float:left;width:8ex}
17
- .mp dd {margin:0 0 0 9ex}
18
- .mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
19
- .mp pre {margin-bottom:20px}
20
- .mp pre+h2,.mp pre+h3 {margin-top:22px}
21
- .mp h2+pre,.mp h3+pre {margin-top:5px}
22
- .mp img {display:block;margin:auto}
23
- .mp h1.man-title {display:none}
24
- .mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
25
- .mp h2 {font-size:16px;line-height:1.25}
26
- .mp h1 {font-size:20px;line-height:2}
27
- .mp {text-align:justify;background:#fff}
28
- .mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
29
- .mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
30
- .mp u {text-decoration:underline}
31
- .mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
32
- .mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
33
- .mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
34
- .mp b.man-ref {font-weight:normal;color:#434241}
35
- .mp pre {padding:0 4ex}
36
- .mp pre code {font-weight:normal;color:#434241}
37
- .mp h2+pre,h3+pre {padding-left:0}
38
- ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
39
- ol.man-decor {width:100%}
40
- ol.man-decor li.tl {text-align:left}
41
- ol.man-decor li.tc {text-align:center;letter-spacing:4px}
42
- ol.man-decor li.tr {text-align:right;float:right}
43
- </style>
44
- <style type='text/css' media='all'>
45
- /* style: toc */
46
- .man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
47
- .man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
48
- .man-navigation a:hover {color:#111;text-decoration:underline}
49
- </style>
50
- </head>
51
- <!--
52
- The following styles are deprecated and will be removed at some point:
53
- div#man, div#man ol.man, div#man ol.head, div#man ol.man.
54
-
55
- The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
56
- .man-navigation should be used instead.
57
- -->
58
- <body id='manpage'>
59
- <div class='mp' id='man'>
60
-
61
- <div class='man-navigation' style='display:none'>
62
- <a href="#NAME">NAME</a>
63
- <a href="#SYNOPSIS">SYNOPSIS</a>
64
- <a href="#DESCRIPTION">DESCRIPTION</a>
65
- <a href="#OPTIONS">OPTIONS</a>
66
- <a href="#EXAMPLES">EXAMPLES</a>
67
- <a href="#SEE-ALSO">SEE ALSO</a>
68
- <a href="#COPYRIGHT">COPYRIGHT</a>
69
- </div>
70
-
71
- <ol class='man-decor man-head man head'>
72
- <li class='tl'>prlbackup(1)</li>
73
- <li class='tc'>PRLBACKUP MANUAL</li>
74
- <li class='tr'>prlbackup(1)</li>
75
- </ol>
76
-
77
- <h2 id="NAME">NAME</h2>
78
- <p class="man-name">
79
- <code>prlbackup</code> - <span class="man-whatis">an awesome backup tool for Parallels Server Virtual Machines</span>
80
- </p>
81
-
82
- <h2 id="SYNOPSIS">SYNOPSIS</h2>
83
-
84
- <p><code>prlbackup</code> <code>-h</code>|<code>--help</code><br />
85
- <code>prlbackup</code> [<var>OPTIONS</var>...] <var>vm_id|vm_name</var>...<br />
86
- <code>prlbackup</code> [<var>OPTIONS</var>...] <code>-a</code>|<code>--all</code><br />
87
- <code>prlbackup</code> [<var>OPTIONS</var>...] <code>-a</code>|<code>--all</code> <code>-e</code>|<code>--exclude</code> <var>vm_id|vm_name</var>...</p>
88
-
89
- <h2 id="DESCRIPTION">DESCRIPTION</h2>
90
-
91
- <p><code>prlbackup</code> simplifies the backup of one or multiple Virtual Machines
92
- (VM) running on Parallels Server by stoping them during backup and
93
- deleting old backups on demand. A working installation of Parallels
94
- Server is required.</p>
95
-
96
- <p><code>prlbackup</code> was tested under Parallels Server for Mac 4.0 (PSfM).</p>
97
-
98
- <h2 id="OPTIONS">OPTIONS</h2>
99
-
100
- <dl>
101
- <dt><code>-h</code>, <code>--help</code></dt><dd><p>Display a short help.</p></dd>
102
- <dt><code>-a</code>, <code>--all</code></dt><dd><p>Backup all virtual machines which are registered in Parallels Server.</p></dd>
103
- <dt><code>-e</code>, <code>--exclude</code></dt><dd><p>Backup all but the given virtual machines (only applicable in
104
- combination with option <code>--all</code>!).</p></dd>
105
- <dt><code>-f</code>, <code>--full</code></dt><dd><p>Create full backups (by default incremental backups are created).
106
- Note that the first backup for a VM is always a full backup despide
107
- of this option.</p></dd>
108
- <dt><code>-v</code>, <code>--verbose</code></dt><dd><p>Display commands before executing them.</p></dd>
109
- <dt><code>-n</code>, <code>--dry-run</code></dt><dd><p>Don't run commands with an impact on VMs (display them instead).</p></dd>
110
- <dt><code>-k</code> <var>number_of_full_backups</var>, <code>--keep-only</code> <var>number_of_full_backups</var></dt><dd><p>Delete the oldest full backup(s) until only <var>number_of_full_backups</var> exist.
111
- This cleanup action will be executed for each VM right after creating the
112
- corresponding backup but only if the backup was successfully created.
113
- Incremental backups are automatically deleted by Parallels Server when their
114
- full backup is deleted.</p></dd>
115
- </dl>
116
-
117
-
118
- <h2 id="EXAMPLES">EXAMPLES</h2>
119
-
120
- <p>Display short help:</p>
121
-
122
- <pre><code>$ prlbackup --help
123
- </code></pre>
124
-
125
- <p>Backup VMs by name:</p>
126
-
127
- <pre><code>$ prlbackup Alpha Bravo Charlie
128
- </code></pre>
129
-
130
- <p>Backup a VM by id:</p>
131
-
132
- <pre><code>$ prlbackup "{97351580-afd7-4aff-9960-814196b28e37}"
133
- </code></pre>
134
-
135
- <p>Create full backups of all VMs</p>
136
-
137
- <pre><code>$ prlbackup --full --all
138
- </code></pre>
139
-
140
- <p>Backup all but not the given VMs:</p>
141
-
142
- <pre><code>$ prlbackup --all --exclude Delta Echo
143
- </code></pre>
144
-
145
- <p>Show what commands (with VM impact) whould have been run when backing up
146
- all VMs:</p>
147
-
148
- <pre><code>$ prlbackup --dry-run --all
149
- </code></pre>
150
-
151
- <p>Create the weekly full backup for all VMs and delete backups older than four weeks:</p>
152
-
153
- <pre><code>$ prlbackup --all --keep-only 5
154
- </code></pre>
155
-
156
- <h2 id="SEE-ALSO">SEE ALSO</h2>
157
-
158
- <ul>
159
- <li><span class="man-ref">prlctl<span class="s">(8)</span></span></li>
160
- <li><a href="https://github.com/bjoernalbers/prlbackup">prlbackup on Github</a></li>
161
- </ul>
162
-
163
-
164
- <h2 id="COPYRIGHT">COPYRIGHT</h2>
165
-
166
- <p>Copyright (c) 2012 Bjoern Albers (<a href="&#109;&#x61;&#x69;&#108;&#116;&#111;&#x3a;&#x62;&#106;&#111;&#x65;&#114;&#110;&#x61;&#108;&#98;&#x65;&#x72;&#115;&#x40;&#x67;&#111;&#x6f;&#x67;&#108;&#x65;&#109;&#97;&#105;&#x6c;&#46;&#99;&#111;&#x6d;" data-bare-link="true">&#98;&#106;&#x6f;&#x65;&#x72;&#x6e;&#x61;&#x6c;&#x62;&#101;&#114;&#115;&#64;&#x67;&#x6f;&#111;&#x67;&#108;&#101;&#109;&#x61;&#105;&#x6c;&#46;&#x63;&#111;&#x6d;</a>)</p>
167
-
168
- <p>Permission is hereby granted, free of charge, to any person obtaining
169
- a copy of this software and associated documentation files (the
170
- "Software"), to deal in the Software without restriction, including
171
- without limitation the rights to use, copy, modify, merge, publish,
172
- distribute, sublicense, and/or sell copies of the Software, and to
173
- permit persons to whom the Software is furnished to do so, subject to
174
- the following conditions:</p>
175
-
176
- <p>The above copyright notice and this permission notice shall be
177
- included in all copies or substantial portions of the Software.</p>
178
-
179
- <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
180
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
181
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
182
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
183
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
184
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
185
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
186
-
187
-
188
- <ol class='man-decor man-foot man foot'>
189
- <li class='tl'></li>
190
- <li class='tc'>May 2012</li>
191
- <li class='tr'>prlbackup(1)</li>
192
- </ol>
193
-
194
- </div>
195
- </body>
196
- </html>