summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-06-03 16:18:22 +0100
committerSteve Kemp <steve@steve.org.uk>2015-06-03 16:18:22 +0100
commitb55ea6943f7cd5132c48409bbd2fdcba49e6e5d2 (patch)
treee96d9c2a6c727427a536efed0a6a3de264f6c361 /bin
parentc4b7c1f2d322935e2e4299bda17774587ff692a2 (diff)
Resync.
Diffstat (limited to 'bin')
-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)'