synco 1.0.1 → 1.1.0
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 +4 -4
- data/lib/synco/command/prune.rb +7 -7
- data/lib/synco/version.rb +1 -1
- data/synco.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c010b88d796296e7d601db57d7668bea27452bf4
|
|
4
|
+
data.tar.gz: 38defa9392d35ccdf751bf407a003492447ba8fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48ced35efeb57e29b8f9e063f171f08af459e58aa1d9f12f16edd59c5dee5b015e6820549ba646e2235b24153d3f46e7ee542377723a489861e0b3f71193febe
|
|
7
|
+
data.tar.gz: 7868549488bc957338966e87f1d676e70e064012f47060c6e057fbab3bef12d71206b052cad4431a308bb7c81b452136ab125d9dd8d333b6fbeff39b0efc6641
|
data/lib/synco/command/prune.rb
CHANGED
|
@@ -69,12 +69,12 @@ module Synco
|
|
|
69
69
|
self.description = "Prune old backups to reduce disk usage according to a given policy."
|
|
70
70
|
|
|
71
71
|
options do
|
|
72
|
-
option "--hourly <count>", "Set the number of hourly backups to keep.", default: 24
|
|
73
|
-
option "--daily <count>", "Set the number of daily backups to keep.", default: 7*4
|
|
74
|
-
option "--weekly <count>", "Set the number of weekly backups to keep.", default: 52
|
|
75
|
-
option "--monthly <count>", "Set the number of monthly backups to keep.", default: 12*3
|
|
76
|
-
option "--quarterly <count>", "Set the number of quaterly backups to keep.", default: 4*10
|
|
77
|
-
option "--yearly <count>", "Set the number of yearly backups to keep.", default: 20
|
|
72
|
+
option "--hourly <count>", "Set the number of hourly backups to keep.", default: 24, type: Integer
|
|
73
|
+
option "--daily <count>", "Set the number of daily backups to keep.", default: 7*4, type: Integer
|
|
74
|
+
option "--weekly <count>", "Set the number of weekly backups to keep.", default: 52, type: Integer
|
|
75
|
+
option "--monthly <count>", "Set the number of monthly backups to keep.", default: 12*3, type: Integer
|
|
76
|
+
option "--quarterly <count>", "Set the number of quaterly backups to keep.", default: 4*10, type: Integer
|
|
77
|
+
option "--yearly <count>", "Set the number of yearly backups to keep.", default: 20, type: Integer
|
|
78
78
|
|
|
79
79
|
option "--format <name>", "Set the name of the backup rotations, including strftime expansions.", default: BACKUP_NAME
|
|
80
80
|
option "--latest <name>", "The name of the latest backup symlink.", default: LATEST_NAME
|
|
@@ -157,7 +157,7 @@ module Synco
|
|
|
157
157
|
|
|
158
158
|
if dry?
|
|
159
159
|
print_rotation(retain, erase)
|
|
160
|
-
|
|
160
|
+
elsif erase.any?
|
|
161
161
|
perform_rotation(retain, erase)
|
|
162
162
|
end
|
|
163
163
|
end
|
data/lib/synco/version.rb
CHANGED
data/synco.gemspec
CHANGED
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.require_paths = ["lib"]
|
|
19
19
|
|
|
20
20
|
spec.add_dependency("periodical", "~> 1.1")
|
|
21
|
-
spec.add_dependency("samovar", "~> 1.
|
|
21
|
+
spec.add_dependency("samovar", "~> 1.3")
|
|
22
22
|
spec.add_dependency("fingerprint", "~> 2.0")
|
|
23
23
|
spec.add_dependency("mapping", "~> 1.0")
|
|
24
24
|
spec.add_dependency("build-files", "~> 1.0")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: synco
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-10-
|
|
11
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: periodical
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
33
|
+
version: '1.3'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.
|
|
40
|
+
version: '1.3'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: fingerprint
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|