summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/byteback-restore15
-rwxr-xr-xbin/byteback-setup-client4
-rwxr-xr-xbin/byteback-snapshot2
3 files changed, 10 insertions, 11 deletions
diff --git a/bin/byteback-restore b/bin/byteback-restore
index 6b542ef..2341502 100755
--- a/bin/byteback-restore
+++ b/bin/byteback-restore
@@ -31,8 +31,7 @@ def ssh(*ssh_args)
'-l', @destination_user,
@destination_host
] +
- ssh_args
- .map { |a| a ? a : '' }
+ ssh_args.map { |a| a ? a : '' }
system(*args)
end
@@ -65,18 +64,18 @@ opts = Trollop.options do
banner "byteback-restore: Restore a file\n "
opt :file, 'The file to restore/list.',
- type: :string
+ :type => :string
opt :revision, "The version of the file to restore.",
- type: :string
+ :type => :string
opt :destination, 'Backup destination (i.e. user@host:/path).',
- type: :string
+ :type => :string
opt :ssh_key, 'SSH key filename',
- type: :string,
- default: '/etc/byteback/key',
- short: 'k'
+ :type => :string,
+ :default => '/etc/byteback/key',
+ :short => 'k'
end
#
diff --git a/bin/byteback-setup-client b/bin/byteback-setup-client
index d8ffbfa..988d4b8 100755
--- a/bin/byteback-setup-client
+++ b/bin/byteback-setup-client
@@ -23,10 +23,10 @@ end
opts = Trollop.options do
opt :hostname, 'Set host name for backups',
- type: :string
+ :type => :string
opt :destination, 'Backup destination (i.e. user@host:/path)',
- type: :string
+ :type => :string
end
@destination = opts[:destination]
diff --git a/bin/byteback-snapshot b/bin/byteback-snapshot
index fc9aab3..18a7a67 100755
--- a/bin/byteback-snapshot
+++ b/bin/byteback-snapshot
@@ -13,7 +13,7 @@ include Byteback::Log
opts = Trollop.options do
opt :root, 'Backups directory (must be a btrfs subvolume)',
- type: :string
+ :type => :string
opt :snapshot, '(ignored for compatibility)'