borgmatic info no longer giving specific archive information #577
Reference in New Issue
Block a user
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
previously, running
borgmatic info --archive latestwould include information about both the overall repository and also specific statistics about the latest archive, but as of version 1.7.0,borgmatic infoandborgmatic info --archive latestproduce identical output.Steps to reproduce (if a bug)
run
borgmatic info --archive latestActual behavior (if a bug)
Expected behavior (if a bug)
Other notes / implementation ideas
specifically i'm interested in the json formatted data, but it looks like the issue is the same for normal and json output
Environment
borgmatic version: 1.7.0
Use
sudo borgmatic --versionorsudo pip show borgmatic | grep ^Versionborgmatic installation method: pacman (arch linux)
Borg version: 1.2.2
Use
sudo borg --versionPython version: 3.10.6
Use
python3 --versionDatabase version (if applicable): [version here]
Use
psql --versionormysql --versionon client and server.operating system and version: arch linux
Yikes, thank you for taking the time to report this! I've reproduced the regression locally. I'm guessing it was introduced in 1.7.0 as part of the changes for Borg 2. I'll look into it.
Okay, this is fixed now in master and will be part of the next release! The problem was that
borgmatic infowas passing the archive flag (or in this case, the--glob-archivesflag) to Borg, but only with Borg 2. Now that code path applies to Borg 1 as well.Thanks again for bringing this to my attention.
Just released in borgmatic 1.7.2!