Skip to content

docs: use content-describing archive names, not the hostname - #10527

Merged
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:quickstart-archive-name
Oct 13, 2026
Merged

ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:quickstart-archive-name

Conversation

@ThomasWaldmann

@ThomasWaldmann ThomasWaldmann commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

The quickstart and some help/usage examples still showed borg 1.x style archive names like '{hostname}' or {hostname}-{user}-{utcnow}.

In borg 2, hostname, username and time are stored in the archive metadata, and the archive name is the series name (used for the files cache and prune grouping). So the archive name should describe the archive content and stay the same for all archives of a series.

  • quickstart: the automated backup script uses the backup-sys-home series instead of '{hostname}'. The prune comment now explains that prune applies retention per archive name and host by default.
  • borg help placeholders: replaced the {hostname}-{now} style examples with prune -a 'host:{hostname}' and a repo URL placeholder, and added a paragraph explaining why archive names should not vary.
  • create usage docs: removed the '{fqdn}-root' archive name example.

Generated usage docs (docs/usage/help.rst.inc) are not regenerated here; that happens at release time.

🤖 Generated with Claude Code

borg 2 stores hostname, username and time in the archive metadata and
uses the archive name as the series name (files cache, prune grouping),
so the archive name should describe the archive content and be stable.

- quickstart: automated backup script uses the "backup-sys-home" series
  instead of '{hostname}', explain prune's default name+host grouping.
- help placeholders: replace the borg 1.x style {hostname}-{now} archive
  name examples with -a host: and repo URL placeholder usage, explain
  why archive names should not vary.
- create usage: remove the '{fqdn}-root' archive name example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ThomasWaldmann
ThomasWaldmann force-pushed the quickstart-archive-name branch from 7b26b12 to 3c95ce7 Compare October 13, 2026 16:29
@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.32%. Comparing base (2155628) to head (3c95ce7).
⚠️ Report is 7 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10527      +/-   ##
==========================================
- Coverage   89.34%   89.32%   -0.02%     
==========================================
  Files         104      104              
  Lines       20079    20079              
  Branches     3152     3152              
==========================================
- Hits        17940    17936       -4     
- Misses       1481     1484       +3     
- Partials      658      659       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann
ThomasWaldmann merged commit 10b3610 into borgbackup:master Oct 13, 2026
23 of 24 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the quickstart-archive-name branch October 13, 2026 16:57
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.

1 participant