qdumpfs 1.8.2 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/qdumpfs/option.rb +10 -4
- data/lib/qdumpfs/util.rb +2 -0
- data/lib/qdumpfs/version.rb +1 -1
- data/lib/qdumpfs.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc77dcb0cc06a9f0bd3c05042fa61088e5babf3d5a70fdfa4b1788a6ae4e076e
|
4
|
+
data.tar.gz: e4923e91396f39f7311d8ceb3c1f1128bbbc606a76c55fd84a0753f10341505e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 311b46a74804b78ba6627130a7e2e400dfc0a3e16bfdcd197f6b9406d3f90802117999a5d6d851881b4664e78e213d117ef07a0842757d629b349ad55f271883
|
7
|
+
data.tar.gz: 05c44d7d33a0649cf63a751ec5e12fe0e64030678e52a2774b6d6e4802ce6e8bee12f9742c03d3c16fd6ec26a9fad34ce420ec1a55103fe930b9d0e8e8038ea9
|
data/Gemfile.lock
CHANGED
data/lib/qdumpfs/option.rb
CHANGED
@@ -121,11 +121,17 @@ module Qdumpfs
|
|
121
121
|
@cmd = @opts[:c] || 'backup'
|
122
122
|
|
123
123
|
# @logger = NullLogger.new
|
124
|
-
|
125
|
-
|
126
|
-
|
124
|
+
if @opts[:logpath]
|
125
|
+
@logpath = @opts[:logpath]
|
126
|
+
@logdir = File.dirname(@logpath)
|
127
|
+
else
|
128
|
+
logname = @opts[:logname] || 'qdumpfs.log'
|
129
|
+
#ログディレクトリの作成
|
130
|
+
@logdir = @opts[:logdir] || Dir.pwd
|
131
|
+
@logpath = File.join(@logdir, logname)
|
132
|
+
end
|
133
|
+
|
127
134
|
Dir.mkdir(@logdir) unless FileTest.directory?(@logdir)
|
128
|
-
@logpath = File.join(@logdir, logfile)
|
129
135
|
@logger = SimpleLogger.new(@logpath)
|
130
136
|
|
131
137
|
verifyfile = 'verify.txt'
|
data/lib/qdumpfs/util.rb
CHANGED
data/lib/qdumpfs/version.rb
CHANGED
data/lib/qdumpfs.rb
CHANGED
@@ -40,6 +40,8 @@ module Qdumpfs
|
|
40
40
|
opt.on('-l HOURS', '--limit=HOURS', 'limit hours') {|v| opts[:limit] = v}
|
41
41
|
opt.on('-k KEEPARG', '--keep=KEEPARG', 'ex: --keep 100Y12M12W30D (100years, 12months, 12weeks, 30days, default)') {|v| opts[:keep] = v}
|
42
42
|
opt.on('--logdir=LOGDIR', 'logdir') {|v| opts[:logdir] = v}
|
43
|
+
opt.on('--logname=LOGNAME', 'logname') {|v| opts[:logname] = v}
|
44
|
+
opt.on('--logpath=LOGPATH', 'logpath') {|v| opts[:logpath] = v}
|
43
45
|
opt.on('--delete-from=YYYYMMDD', 'delete backup from YYYY/MM/DD') {|v|
|
44
46
|
opts[:delete_from] = Date.parse(v)
|
45
47
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qdumpfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- src
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|