Sha256: 8b0b56033ebc9614ec5d11516e71b50ac1e8c0ddc2cca5aee51075c76706e5f3

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'methadone'
require 'rsyncbackup'

class App
  include Methadone::Main
  include Methadone::CLILogging

  main do |source, target|
    syncer = Rsyncbackup.new(source, target, options)
    syncer.run
    syncer.finalize
  end

  description "Yet another rsync backup script, this time in ruby"

  on("-e FILE","--exclusions","Exclusions file")
  on("-d","--dry-run","Mark this as a dry run (or not)")
  on("--verbose","Be chatty")
  on("--debug","show debug stuff")

  arg :source, "Source to backup from"
  arg :target, "Target backup directory"

  version Rsyncbackup::VERSION

  # use_log_level_option

  go!
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rsyncbackup-2.0.0 bin/rsyncbackup