2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-27 21:03:29 +00:00
restic/cmd
Michael Eischer 8c4caf09a8 repair snapshots: Do not rename repaired files
The files in a tree must be sorted in lexical order. However, this
cannot be guaranteed when appending a filename suffix. For two files

file, file.rep

where "file" is broken, this would result in

file.repaired, file.rep

which is no longer sorted.

In addition, adding a filename suffix is also prone to filename
collisions which would require a rather complex search for a
collision-free name in order to work reliably.
2023-05-01 15:19:36 +02:00
..
restic repair snapshots: Do not rename repaired files 2023-05-01 15:19:36 +02:00