Sha256: a14648be3d01db4e3a8b538e9d264308d2fab83c63d8fca56926e0b26e9379c4

Contents?: true

Size: 1020 Bytes

Versions: 4

Compression:

Stored size: 1020 Bytes

Contents

  ##
  # RSync::Pull [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::Pull 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"

      # Exclude files/folders.
      # Each pattern will be passed to rsync's `--exclude` option.
      #
      # Note: rsync is run using the `--archive` option,
      #       so be sure to read the `FILTER RULES` in `man rsync`.
      directory.exclude '*~'
      directory.exclude 'tmp/'
    end
  end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
backup-3.11.0 templates/cli/syncer/rsync_pull
backup-3.10.0 templates/cli/syncer/rsync_pull
backup-3.9.0 templates/cli/syncer/rsync_pull
backup-3.8.0 templates/cli/syncer/rsync_pull