bin/encbs in encbs-0.2.2 vs bin/encbs in encbs-0.2.3
- old
+ new
@@ -38,15 +38,15 @@
on :j, :jar, "Versions of jar (option: hash or path)", true
on :k, :key, "Set API key to access Amazon S3", true
on :l, :local, "Backup in local directory", true
on :list, "List of jars"
on :p, :purge, "Remove previous backup(s)"
- on :r, :rescue, "Return data from backup (option: jar, path or filter)", true
+ on :r, :rescue, "Return data from backup (option: jar, path)", true
on :s, :secret, "Set API secret to access Amazon S3", true
on :size, "RSA private key length (default: 4096)", true
on :t, :to, "Path to recovery (default: /)", true
- on :timeout, "Timeout(sec) to try pushing into cloud (default: 60s)", true
+ on :timeout, "Timeout(sec) to try pushing into cloud (default: 60)", true
on :token, "RSA key to encrypt/decrypt backup data", true
on :v, :verbose, "Verbose mode"
banner "Usage:\n $ encbs [options]\n\nOptions:"
end
@@ -174,10 +174,10 @@
puts jars_list
include_path = lambda {|path| jars_list.has_key?(path)}
jars_hashes = paths.map do |path|
- unless path.length == 32 and path.match /[0-9a-f]{32}/
+ unless path.length == 32 and path.match(/[0-9a-f]{32}/)
path = File.expand_path path
unless include_path[path] or include_path["#{path}/"]
puts_fail "Jar \"#{path}\" not exists."
end