You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding borg list specifically: We could populate the timestamps with nanosecond precision but use {mtime:24} in the default --format string (i.e., hide them by default).
Regarding nanosecond precision in general: IMHO, normal text output is intended for humans, and humans rarely (if ever) care about nanoseconds. Nanoseconds should be included in --json output, though. Also, see my earlier thoughts on this in #9840 (comment)
Personally, I never missed nanoseconds in borg list for my own usage, with a relative small number of backups.
What would be the real world use case, where nanoseconds in borg list matter?
Would this type of precission be useful for real world debugging/ professional usecases?
To me it seems that log files are a better place for debugging/ precise time stamps.
Anyway, if nanoseconds are added, one should think about good default formating. On second is 1.000.000.000 nanoseconds - and I guess nobody wants to spend time e.g. searching for minutes and seconds in long time stamps, in the output of borg list.
My personal use case is to compare the output of borg list--json... against a database that stores the file properties / checksums at the time of archive creation in order to ensure data integrity. As the originating filesystem provides nanosecond precision it seems only natural to me to use it, especially as Borg has the data internally.
However, I agree with @PhrozenByte and @goebbe to differentiate between output like JSON or log files and text output that is intended to be read by humans.
Activity
ThomasWaldmann commentedon Nov 1, 2026
Well, this has pros and cons:
I am somehow indifferent, could live with both ways.
So guess this needs more feedback from other users:
PhrozenByte commentedon Nov 1, 2026
Regarding
borg listspecifically: We could populate the timestamps with nanosecond precision but use{mtime:24}in the default--formatstring (i.e., hide them by default).Regarding nanosecond precision in general: IMHO, normal text output is intended for humans, and humans rarely (if ever) care about nanoseconds. Nanoseconds should be included in
--jsonoutput, though. Also, see my earlier thoughts on this in #9840 (comment)goebbe commentedon Nov 2, 2026
Personally, I never missed nanoseconds in
borg listfor my own usage, with a relative small number of backups.What would be the real world use case, where nanoseconds in
borg listmatter?Would this type of precission be useful for real world debugging/ professional usecases?
To me it seems that log files are a better place for debugging/ precise time stamps.
Anyway, if nanoseconds are added, one should think about good default formating. On second is 1.000.000.000 nanoseconds - and I guess nobody wants to spend time e.g. searching for minutes and seconds in long time stamps, in the output of
borg list.mburghardt commentedon Nov 2, 2026
My personal use case is to compare the output of
borg list--json...against a database that stores the file properties / checksums at the time of archive creation in order to ensure data integrity. As the originating filesystem provides nanosecond precision it seems only natural to me to use it, especially as Borg has the data internally.However, I agree with @PhrozenByte and @goebbe to differentiate between output like JSON or log files and text output that is intended to be read by humans.