Sha256: b80d8083af4a35d5a4df4942df56219ebacc80017ae13d2d471a3e2c721946ef

Contents?: true

Size: 914 Bytes

Versions: 72

Compression:

Stored size: 914 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.
  #
  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

72 entries across 72 versions & 12 rubygems

Version Path
backup-ssh-4.4.5 templates/cli/syncers/rsync_pull
backup-5.0.0.beta.3 templates/cli/syncers/rsync_pull
backup-remote-0.0.19 templates/cli/syncers/rsync_pull
backupii-0.1.0.pre.alpha.2 templates/cli/syncers/rsync_pull
backupii-0.1.0.pre.alpha.1 templates/cli/syncers/rsync_pull
cm-backup-1.0.0 templates/cli/syncers/rsync_pull
backedup-5.0.0.beta.5 templates/cli/syncers/rsync_pull
backedup-5.0.0.beta.4 templates/cli/syncers/rsync_pull
backedup-5.0.0.beta.3 templates/cli/syncers/rsync_pull
ext_backup-5.0.0.beta.2.1 templates/cli/syncers/rsync_pull
backup-ssh-4.4.4 templates/cli/syncers/rsync_pull
backup-ssh-4.4.3 templates/cli/syncers/rsync_pull
ext_backup-5.0.0.beta.2.ext.0.1.2 templates/cli/syncers/rsync_pull
backup-4.4.1 templates/cli/syncers/rsync_pull
ext_backup-5.0.0.beta.2.ext.0.1.1 templates/cli/syncers/rsync_pull
ext_backup-5.0.0.beta.2.ext.0.1.0 templates/cli/syncers/rsync_pull
backup-remote-0.0.18 templates/cli/syncers/rsync_pull
backup-5.0.0.beta.2 templates/cli/syncers/rsync_pull
backup-5.0.0.beta.1 templates/cli/syncers/rsync_pull
backup-remote-0.0.17 templates/cli/syncers/rsync_pull