Sha256: 17be7b9b32b9b7a44382265ad99d30646e65e36c86f9bd2a9a616717b3e6d494

Contents?: true

Size: 1.08 KB

Versions: 14

Compression:

Stored size: 1.08 KB

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'
  #
  # For more details, please see:
  # https://github.com/meskyanichi/backup/wiki/Archives
  #
  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

14 entries across 14 versions & 1 rubygems

Version Path
backup-3.11.0 templates/cli/archive
backup-3.10.0 templates/cli/archive
backup-3.9.0 templates/cli/archive
backup-3.8.0 templates/cli/archive
backup-3.7.2 templates/cli/archive
backup-3.7.1 templates/cli/archive
backup-3.7.0 templates/cli/archive
backup-3.6.0 templates/cli/archive
backup-3.5.1 templates/cli/archive
backup-3.5.0 templates/cli/archive
backup-3.4.0 templates/cli/archive
backup-3.3.2 templates/cli/archive
backup-3.3.1 templates/cli/archive
backup-3.3.0 templates/cli/archive