diff options
-rwxr-xr-x | bin/byteback-prune | 12 | ||||
-rwxr-xr-x | bin/byteback-receive | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/bin/byteback-prune b/bin/byteback-prune index d005289..0cf87a7 100755 --- a/bin/byteback-prune +++ b/bin/byteback-prune @@ -17,12 +17,12 @@ opts = Trollop.options do banner "Prune old backup directories to ensure there's enough space" opt :minpercent, 'Start prune when disk has less than this %age free', - type: :integer, - default: 5 + :type => :integer, + :default => 5 opt :maxpercent, 'Stop prune when disk has more than this %age free', - type: :integer, - default: 10 + :type => :integer, + :default => 10 opt :list, 'List backups in pruning order, no other action' @@ -31,8 +31,8 @@ opts = Trollop.options do opt :prune_force, 'Prune the next backup regardless' opt :order, "Order backups by 'age' or 'importance'", - type: :string, - default: 'importance' + :type => :string, + :default => 'importance' opt :verbose, 'Show debugging messages' end diff --git a/bin/byteback-receive b/bin/byteback-receive index 4b949c2..5d0d35a 100755 --- a/bin/byteback-receive +++ b/bin/byteback-receive @@ -43,8 +43,8 @@ end opts = Trollop.options do opt :verbose, 'Print diagnostics' opt :ping, 'Check connection parameters and exit' - opt :list, 'Show backed up files matching the given pattern', type: :string - opt :restore, 'Perform a restoration operation', type: :string + opt :list, 'Show backed up files matching the given pattern', :type => :string + opt :restore, 'Perform a restoration operation', :type => :string opt :complete, 'Mark current backup as complete' end |