How to copy a sparse file using scp?
Do we have any option in scp
that I could copy a sparse file ?
The following command works with ssh
, But I am looking for an option in SCP
which copies a sparse file.
tar -Szcf - /home/myself/test/ | \
ssh myself@myserver 'tar -C /home/myself/test_scp -zvxf -'
scp
doesn't support sparse files. Use rsync
instead.
rsync -aS /home/myself/test/ myself@myserver: