Skip to content

Commit

Permalink
remove baked agents from backups with no-agents or -N
Browse files Browse the repository at this point in the history
  • Loading branch information
gradecke authored Dec 16, 2024
1 parent 2f7e205 commit 9af1e90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions omd/packages/omd/omdlib/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def get_exclude_patterns(options: CommandOptions) -> list[str]:
excludes.append("var/pnp4nagios/states/*")
excludes.append("var/check_mk/rrd/*")

if "no-agents" in options or "no-past" in options:
excludes.append("var/check_mk/agents/*")

if "no-logs" in options or "no-past" in options:
# Logs of different components
excludes.append("var/log/*.log")
Expand Down

0 comments on commit 9af1e90

Please sign in to comment.