Support for transferring sparse files via scp/sftp correctly?

Philipp Marek philipp at marek.priv.at
Tue Mar 4 21:34:08 AEDT 2025


> Does OpenSSH scp/sftp mode transfer sparse files correctly, i.e. are
> holes skipped and not transferred as chunks of 0 bytes? [1]
> 
> We're asking about sparse files in the >= 1PB range, which consists of
> multi-TB holes with around 600-2000GB of valid data.


Perhaps rsync would be a good fit here,
it supports --sparse.


More information about the openssh-unix-dev mailing list