Skip to content

DNM: feat(cli): specify ignore rules in a file at snapshot time#567

Draft
julio-lopez wants to merge 6 commits into
kastenfrom
poc/ignorefs-file
Draft

DNM: feat(cli): specify ignore rules in a file at snapshot time#567
julio-lopez wants to merge 6 commits into
kastenfrom
poc/ignorefs-file

Conversation

@julio-lopez
Copy link
Copy Markdown
Collaborator

No description provided.

julio-lopez and others added 6 commits April 3, 2026 10:29
Add a flag to the `snapshot create` command, which
allows specifying additional ignore rules stored
in files external to the back up source directory.

This means that the file containing ignore rules does not need to be
within the directory being backed up, which allows specifying
additional ignore rules without modifying the directory being backed
up, nor requiring creating or modifying policies on the fly.

- Adds a new flag to the kopia snapshot create command which accepts the
  absolute path of a file containing ignore rules which will be applied
  towards the source being backed up.

- The new ignore file/rules will be considered in addition to the already
  configured ignore rules and files as part of the policy hierarchy.

- Testing: unit tests and end-to-end tests included.
- add new field to ignoreContext to propagate external ignore rules
- cleanup: reuse ignorefs ignorefile parsing
- improving naming convention to make design decision clear
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 3, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b2d7bf08-e0df-4949-ac8e-d3eff624b549

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch poc/ignorefs-file

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@julio-lopez julio-lopez force-pushed the kasten branch 2 times, most recently from a3807d5 to 118ff3f Compare April 19, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants