Skip to content

borg mount showing the wrong file version? #9245

@MartinKurtz

Description

@MartinKurtz

first of all version is

$ borg --version
borg 1.4.0

i will be looking at 2 versions (though really just one, for brevity) of the same borg repo, one version being newer, one i have pulled from a zfs snapshot made on the 30th of november.

The older one looks like this:

$borg list <repo path>
1705_16022025                        Sun, 2025-02-16 17:08:41 [05fe4bd41704ba5a594fd5ddec47ab8fa3a6811bbd08e413f53fc9cfb1f667db]
...
shortened for brevity
...
MartinPC-2025-11-29T23:00:02.625868  Sat, 2025-11-29 23:00:02 [915a522e821dfc11a72a0b1c59730dedb4a82d6ac38b4de27a66dab1a75b461d]

the newer one like this

$borg list <repo path>
1705_16022025                        Sun, 2025-02-16 17:08:41 [05fe4bd41704ba5a594fd5ddec47ab8fa3a6811bbd08e413f53fc9cfb1f667db]
...
shortened for brevity
...
MartinPC-2025-12-20T18:00:02.097987  Sat, 2025-12-20 18:00:02 [b5295694e845c2d32c0e1d4b0f652eae94e04d5688719bca0648767d74582377]

The repos contain backups mainly for the last month

these are the files the issue occurs with

$ ls -l <loads of path>/*
-rw-rw-r-- 1 martin martin 25603324 28. Dez 12:26 "<loads of path>/HonourMode.lsv"
-rw-rw-r-- 1 martin martin    39240 28. Dez 12:26 "<loads of path>/HonourMode.WebP"
$ sha256sum <loads of path>/*
ab59b0ea708e39c1a1a05ca72eae3a6b73c97d2cd9fdfa90014b445f59b36c67  <loads of path>/HonourMode.lsv
012fdefaff015f53949ae54ea01f3a506ab623c18535f66aafbf81d0da6c9b0f  <loads of path>/HonourMode.WebP

As you can see the mtime is the 28th of December (2025) which is when (i presume) the savegame got corrupted. and the shasum is there to verify its not just a time displaying error, these are the 2 files this occurs with

now comes the interesting part:

first mount the borg repo to mp3:

borg mount <repo> mp3

then examine the files in question:

$ for d in mp3/MartinPC-2025-12-*T23*; do echo "Running in $d"; (ls -l $d/<loads of file path>/*; ); doneRunning in mp3/MartinPC-2025-12-07T23:00:02.701843
-rw-rw-r-- 1 martin martin 25603324 28. Dez 12:26 "mp3/MartinPC-2025-12-07T23:00:02.701843<loads of file path>HonourMode.lsv"
-rw-rw-r-- 1 martin martin    39240 28. Dez 12:26 "mp3/MartinPC-2025-12-07T23:00:02.701843<loads of file path>HonourMode.WebP"
...
abbreviated
...
-rw-rw-r-- 1 martin martin 25603324 28. Dez 12:26 "mp3/MartinPC-2025-12-19T23:00:01.614044<loads of file path>HonourMode.lsv"
-rw-rw-r-- 1 martin martin    39240 28. Dez 12:26 "mp3/MartinPC-2025-12-19T23:00:01.614044<loads of file path>HonourMode.WebP"

and the sha256sum

$ for d in mp3/MartinPC-2025-12-*T23*; do echo "Running in $d"; (sha256sum $d/<loads of file path>/*; ); done
ab59b0ea708e39c1a1a05ca72eae3a6b73c97d2cd9fdfa90014b445f59b36c67  mp3/MartinPC-2025-12-07T23:00:02.701843<loads of file path>HonourMode.lsv
012fdefaff015f53949ae54ea01f3a506ab623c18535f66aafbf81d0da6c9b0f  mp3/MartinPC-2025-12-07T23:00:02.701843<loads of file path>HonourMode.WebP
...
abbreviated
...
ab59b0ea708e39c1a1a05ca72eae3a6b73c97d2cd9fdfa90014b445f59b36c67  mp3/MartinPC-2025-12-19T23:00:01.614044<loads of file path>HonourMode.lsv
012fdefaff015f53949ae54ea01f3a506ab623c18535f66aafbf81d0da6c9b0f  mp3/MartinPC-2025-12-19T23:00:01.614044<loads of file path>HonourMode.WebP

it does the same thing with the older repo, ill ommit it because then the wall of text would become even larger, but i can provide it if necessary

so in short:

borg appears to be showing me a version of this file which is newer than the date the backup was made, even with a repo which itself was pulled from a zfs snapshot made before the file was modified.

this leads me to believe there is a potential bug with the way borg mount shows me files.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions