docs: archive specification, FAQ, fixes #9248, fixes #9053

This commit is contained in:
Thomas Waldmann
2026-03-06 21:26:36 +01:00
parent 45c63ff084
commit dd38e2c2df
3 changed files with 35 additions and 0 deletions
+8
View File
@@ -619,6 +619,14 @@ Please disclose security issues responsibly.
Common issues
#############
Command error: ... needed to match precisely one archive, but matched N.
------------------------------------------------------------------------
The command wanted one archive to work with. But the parameters you gave either
didn't match anything or they matched multiple archives.
See :ref:`archive_specification` about how to refer to an archive.
/path/to/repo is not a valid repository. Check repo config.
-----------------------------------------------------------
@@ -0,0 +1,25 @@
.. _archive_specification:
Specifying an archive
~~~~~~~~~~~~~~~~~~~~~
How to refer to an archive depends on whether you use archive series or not.
**By ID:** if you use archive series, many or all archives will have the same name, thus
you need to refer to a single archive by its archive ID (see ``borg repo-list``
output)::
borg info aid:f7dea078
The ``aid:`` prefix does a prefix match on the archive ID (the hex representation
of the archive fingerprint). You only need to give enough hex digits to uniquely
identify the archive. This is useful when archive names are ambiguous or when
you want to refer to an archive by its immutable ID.
**By name:** if you don't use archive series, but do it old-style by giving every archive
a unique name, you can refer to an archive by its name::
borg info my-backup-202512312359
For more details on archive matching patterns (including shell-style globs,
regular expressions, and matching by user/host/tags), see :ref:`borg_match-archives`.
+2
View File
@@ -4,6 +4,8 @@
.. include:: general/repository-locations.rst.inc
.. include:: general/archive-specification.rst.inc
.. include:: general/logging.rst.inc
.. include:: general/return-codes.rst.inc