2
2
mirror of https://github.com/octoleo/restic.git synced 2025-02-03 12:28:30 +00:00
Michael Eischer 5d6ce59a8d restorer: also truncate files if their content is already uptodate
Files for which no blobs have to be restored, still have to be truncated
to the correct size. Take a file with content "foobar" that should be
replaced by restore with content "foo". The first three bytes are
already uptodate, such that no data has to be written. As file
truncation normally happens when writing data, a special case is
necessary.

This no blobs written special case is unified with the empty file
special case.
2024-07-21 12:03:56 +02:00
..
2024-03-11 14:35:12 +08:00
2023-12-06 13:11:55 +01:00