Sha256: fa89dbf998c2f886d8506802d2c65dad34eb7ba8c36a88b9a8e7d69eceb65e23
Contents?: true
Size: 1019 Bytes
Versions: 1
Compression:
Stored size: 1019 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 `backupii 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backupii-0.1.0.pre.alpha.2 | templates/cli/archive |