Skip to main content
type: local backs up files and directories on the host filesystem. It needs no external tools.

Example

snapr.yaml

Options

Notes

  • When excludes is empty, snapr symlinks the source path into the working directory — no copy is made. With excludes, snapr walks the tree and copies file by file.
  • Exclude patterns are matched against each entry’s path relative to path. Supported forms:
    • *.tmp — glob (Go filepath.Match syntax) against the path or just the filename.
    • temp/ — a trailing slash means “anything under this directory”.
    • **/cache/** — a named directory at any depth.
    • node_modules — a bare literal also matches by directory or filename.