[Question] List files in an archive #503
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
List the files in an archive
Other notes / implementation ideas
run
$
borgmatic list -a archive-name-2022-02-22-22:22
This would then output the files, just like
borg list /repository/location:name::archive-name-2022-02-22-22:22
Environment
Borgmatic version: 1.5.23
Borgmatic installation method: pip3
Borg version: 1.2.0
Python version:
pip 22.0.3 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
operating system and version: Ubuntu 18.04.6 LTS
Thanks for filing. This looks like a regression! It should be listing files in the given archive. I need to look into this and find out what's going on.
Aha! Not a regression, but instead the wrong argument. Try this instead:
The
-a
flag, in contrast, is the short form of--glob-archives
.. which is a flag for filtering the full list of archives in a repository. But not for selecting a single archive to list. Confusing, I know.Let me know if the
--archive
flag works for you!Yep, it's indeed
--archive
that does exactly what I want :)You might want to put that somewhere in the documentation? As most places,
-a
is documented as "a shorthand for--archive
", which is in this case it isn't.Thanks for the quick reply!
Glad to hear it does what you need. Do you know of any places where
-a
is documented as a "a shorthand for--archive
"? I'd like to fix them or let the author know to fix them. Thanks!Nope, I've mixed up the Borg documentation, Borgmatic documentation and the shorthands available, and my brain turned it in to "-a should work" and got confused when it didn't.
Entirely PEBKAC! (mine, that is)
Okay, no worries! I agree that
-a
would be intuitive!