backup
Create timestamped zip backups of directories with configurable exclusions for version control and temporary files. Preview backups before creation to verify included content.
Instructions
Creates a timestamped zip backup of a directory. Output: {dirname}_{YYYYMMDD_HHMMSS}.zip Default excludes: .git, node_modules, pycache, binaries. Custom excludes can be added via the excludes parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Absolute path to the directory to backup | |
| output_dir | No | Absolute path to the backup output directory. Default: ./backups/ | |
| excludes | No | Glob patterns to exclude (e.g. node_modules, *.log, .git) | |
| excludes_file | No | Absolute path to a file containing exclude patterns (one per line). Lines starting with # are comments. Patterns are appended to excludes list | |
| dry_run | No | Preview backup without creating archive. Shows summary with directory counts, exclude pattern matches, and largest files (default false) |