Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs: show retention tag/path defaults in config reference - #677

Open
rune-gh wants to merge 1 commit into
creativeprojects:masterfrom
rune-gh:docs/issue-200-tag-path-defaults
Open

rune-gh wants to merge 1 commit into
creativeprojects:masterfrom
rune-gh:docs/issue-200-tag-path-defaults

Conversation

@rune-gh

@rune-gh rune-gh commented Sep 11, 2026

Copy link
Copy Markdown

Summary

  • Populate the generated config reference Default column for resticprofile-applied tag / path / host defaults
  • Values verified from RetentionSection.resolve and BackupSection.resolve in config/profile.go (not invented)
  • Reference-only helper so JSON schema is not given version-dependent defaults

Defaults documented

Section Option Default column Source
retention path true RetentionSection.resolve sets path=true when backup exists (all config versions)
retention tag true (config version 2) Same resolve copies backup tags only for config version ≥ 2
retention host true (config version 2) Same resolve (v2)
backup host true (config version 2) BackupSection.resolve
forget tag / path (none) No implicit default in code (unlike retention)

Fixes #200

Notes

  • Related open PR Document generated defaults in config reference #640 takes a similar approach; this PR is a fresh implementation from current master with tests covering retention vs forget.
  • Notes text for these options was already present via info_customizer.go; this fills the empty Default column the issue screenshot highlighted.

Test plan

  • go test ./config -run 'TestInfoData|TestHostTagPathProperty'
  • go run . generate --config-reference and confirm retention tag / path Default cells

Populate the generated reference Default column for resticprofile-applied
defaults from RetentionSection.resolve / BackupSection.resolve:
- retention.path: true (all config versions when backup exists)
- retention.tag / retention.host: true for config version 2
- backup.host: true for config version 2

Fixes creativeprojects#200

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Configuration reference does not state default value for tag option

1 participant