type: local backs up files and directories on the host filesystem. It needs no external tools.
Example
snapr.yaml
Options
Notes
- When
excludesis empty, snapr symlinks the source path into the working directory — no copy is made. Withexcludes, 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 (Gofilepath.Matchsyntax) 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.
Related
- Sources overview
- SQLite source — for consistent dumps of SQLite files