backup/backup

View on GitHub
templates/cli/storages/rsync

Summary

Maintainability
Test Coverage
  ##
  # RSync [Storage]
  #
  # The default `mode` is :ssh, which does not require the use
  # of an rsync daemon on the remote. If you wish to connect
  # directly to an rsync daemon, or via SSH using daemon features,
  # :rsync_daemon and :ssh_daemon modes are also available.
  #
  # If no `host` is specified, the transfer will be a local
  # operation. `mode` and `compress` will have no meaning.
  #
  store_with RSync do |rsync|
    rsync.mode      = :ssh
    rsync.host      = "123.45.678.90"
    rsync.path      = "~/backups/"
    rsync.compress  = true
  end