restic/internal/restorer
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
..
doc.go fix some typos 2024-03-11 14:35:12 +08:00
filerestorer.go restorer: also truncate files if their content is already uptodate 2024-07-21 12:03:56 +02:00
filerestorer_test.go restore: allow deleting a directory to replace it with a file 2024-07-05 22:38:39 +02:00
fileswriter.go restore: allow deleting a directory to replace it with a file 2024-07-05 22:38:39 +02:00
fileswriter_other_test.go restorer: windows test fixes 2024-06-13 23:20:09 +02:00
fileswriter_test.go restore: allow deleting a directory to replace it with a file 2024-07-05 22:38:39 +02:00
fileswriter_windows_test.go restorer: windows test fixes 2024-06-13 23:20:09 +02:00
hardlinks_index.go Fix typos 2023-12-06 13:11:55 +01:00
hardlinks_index_test.go restorer: Make hardlink index generic 2023-10-27 23:40:42 +02:00
restorer.go restore: progress bar total on windows 2024-07-14 11:21:11 +02:00
restorer_test.go restore: extend overwrite test for small files 2024-07-14 11:30:41 +02:00
restorer_unix.go restore: use case insensitive file name comparison on windows 2024-07-05 22:38:39 +02:00
restorer_unix_test.go restore: test progress reporting for partially up to date files 2024-07-14 11:21:11 +02:00
restorer_windows.go restore: use case insensitive file name comparison on windows 2024-07-05 22:38:39 +02:00
restorer_windows_test.go restore: use case insensitive file name comparison on windows 2024-07-05 22:38:39 +02:00
sparsewrite.go restore: fine-grained sparse support for windows 2024-06-13 21:55:33 +02:00
truncate_other.go restore: support sparse restores also on windows 2022-09-24 21:39:39 +02:00
truncate_windows.go restore: support sparse restores also on windows 2022-09-24 21:39:39 +02:00