hermes - 💡(How to fix) Fix Feature Request: Make hermes backup exclusions configurable [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#28970Fetched 2026-05-20 04:00:53
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3commented ×1

Code Example

backup:
  exclude:
    - "venv/"
    - ".venv/"
    - "sessions/"
    - "logs/"
    - "**/__pycache__/"
  use_gitignore: true

---

Implement configurable exclusions for `hermes backup`.

Add a `backup:` section in config.yaml with:
- `exclude`: list of glob patterns
- `use_gitignore`: boolean

Modify `hermes_cli/backup.py` to read these settings and apply them in the backup exclusion logic. Keep backward compatibility and follow existing code patterns. Update the documentation in `cli-commands.md`.
RAW_BUFFERClick to expand / collapse

Problem

The hermes backup command uses a hardcoded exclusion list in hermes_cli/backup.py. This results in unnecessarily large backups when users have vendored virtual environments (venv/, .venv/), session data, logs, or other regeneratable files inside their skills directory.

There is currently no way to customize what gets excluded from backups.

Impact

  • Backups can easily grow to several hundred MB even for relatively new Hermes installations.
  • Makes regular backups and migrations less practical.
  • No integration with existing .gitignore files.

Proposed Solution

Add support for a backup: section in config.yaml:

backup:
  exclude:
    - "venv/"
    - ".venv/"
    - "sessions/"
    - "logs/"
    - "**/__pycache__/"
  use_gitignore: true

This would allow users to define additional exclusion patterns and optionally respect .gitignore files.

Prompt for Coding Agents

Implement configurable exclusions for `hermes backup`.

Add a `backup:` section in config.yaml with:
- `exclude`: list of glob patterns
- `use_gitignore`: boolean

Modify `hermes_cli/backup.py` to read these settings and apply them in the backup exclusion logic. Keep backward compatibility and follow existing code patterns. Update the documentation in `cli-commands.md`.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Feature Request: Make hermes backup exclusions configurable [1 comments, 2 participants]