Sha256: 7478e292c2ddbe80e68dedaef6c7f3aeba557b0b4b88b04fa0e7511def485bd8

Contents?: true

Size: 728 Bytes

Versions: 11

Compression:

Stored size: 728 Bytes

Contents

  ##
  # RSync::Push [Syncer]
  #
  # 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.
  # See the documentation on the Wiki for details.
  # https://github.com/meskyanichi/backup/wiki/Syncers
  #
  sync_with RSync::Push do |rsync|
    rsync.mode     = :ssh
    rsync.host     = "123.45.678.90"
    rsync.path     = "~/backups"
    rsync.mirror   = true
    rsync.compress = true

    rsync.directories do |directory|
      directory.add "/var/apps/my_app/public/uploads"
      directory.add "/var/apps/my_app/logs"
    end
  end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
backup-3.7.2 templates/cli/syncer/rsync_push
backup-3.7.1 templates/cli/syncer/rsync_push
backup-3.7.0 templates/cli/syncer/rsync_push
backup-3.6.0 templates/cli/syncer/rsync_push
backup-3.5.1 templates/cli/syncer/rsync_push
backup-3.5.0 templates/cli/syncer/rsync_push
backup-3.4.0 templates/cli/syncer/rsync_push
backup-3.3.2 templates/cli/syncer/rsync_push
backup-3.3.1 templates/cli/syncer/rsync_push
backup-3.3.0 templates/cli/syncer/rsync_push
backup-3.2.0 templates/cli/syncer/rsync_push