2023-01-08 14:34:30 +00:00
|
|
|
Enhancement: Restore files with long runs of zeros as sparse files
|
2020-03-06 09:14:27 +00:00
|
|
|
|
2022-09-04 09:23:31 +00:00
|
|
|
When using `restore --sparse`, the restorer may now write files containing long
|
2023-01-08 14:34:30 +00:00
|
|
|
runs of zeros as sparse files (also called files with holes), where the zeros
|
|
|
|
are not actually written to disk.
|
2020-03-06 09:14:27 +00:00
|
|
|
|
|
|
|
How much space is saved by writing sparse files depends on the operating
|
|
|
|
system, file system and the distribution of zeros in the file.
|
|
|
|
|
2023-01-08 14:34:30 +00:00
|
|
|
During backup restic still reads the whole file including sparse regions, but
|
|
|
|
with optimized processing speed of sparse regions.
|
2022-09-04 09:03:59 +00:00
|
|
|
|
2020-03-06 09:14:27 +00:00
|
|
|
https://github.com/restic/restic/issues/79
|
2022-09-04 09:03:59 +00:00
|
|
|
https://github.com/restic/restic/issues/3903
|
2020-03-06 09:14:27 +00:00
|
|
|
https://github.com/restic/restic/pull/2601
|
2022-09-04 09:03:59 +00:00
|
|
|
https://github.com/restic/restic/pull/3854
|
2020-03-06 09:14:27 +00:00
|
|
|
https://forum.restic.net/t/sparse-file-support/1264
|