Sha256: bf490e8c812110a5d02e3a89e192ff6f4d12aad0494fa845d3aa740ab9cc4ff3

Contents?: true

Size: 1017 Bytes

Versions: 71

Compression:

Stored size: 1017 Bytes

Contents

  ##
  # Archive [Archive]
  #
  # Adding a file or directory (including sub-directories):
  #   archive.add "/path/to/a/file.rb"
  #   archive.add "/path/to/a/directory/"
  #
  # Excluding a file or directory (including sub-directories):
  #   archive.exclude "/path/to/an/excluded_file.rb"
  #   archive.exclude "/path/to/an/excluded_directory
  #
  # By default, relative paths will be relative to the directory
  # where `backup perform` is executed, and they will be expanded
  # to the root of the filesystem when added to the archive.
  #
  # If a `root` path is set, relative paths will be relative to the
  # given `root` path and will not be expanded when added to the archive.
  #
  #   archive.root '/path/to/archive/root'
  #
  archive :my_archive do |archive|
    # Run the `tar` command using `sudo`
    # archive.use_sudo
    archive.add "/path/to/a/file.rb"
    archive.add "/path/to/a/folder/"
    archive.exclude "/path/to/a/excluded_file.rb"
    archive.exclude "/path/to/a/excluded_folder"
  end

Version data entries

71 entries across 71 versions & 12 rubygems

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