RsyncProject / rsync

An open source utility that provides fast incremental file transfer. It also has useful features for backup and restore operations among many other use cases.
https://rsync.samba.org
Other
2.75k stars 328 forks source link

Feature request: support skipping holes & preserve sparseness when copying sparse files #319

Open adrien1018 opened 2 years ago

adrien1018 commented 2 years ago

Currently when copying sparse files, rsync currently reads over all holes and transfers all zero bytes. This is extremely inefficient when transferring large sparse files (e.g. raw VM images), and the sparseness of the original file cannot be preserved (because it does not distinguish an all-zero chunk from a hole).

I'd like to suggest adding an option for (1) skipping reading / transferring holes and (2) preserve sparseness of the original file whenever possible, just like the -S option of tar.

andreygursky commented 2 years ago

For reference:

drws commented 2 years ago

This is a related feature request from the old bugtracker (just FYI).