Sparse files
Create sparse file
truncate -s 10G ./file
Copy locally
cp from to
Show real size
ls
Show real size and logical file size:
ls -lhs file
du
Show real file size:
du -sh file
Copy over network
rsync
rsync -aS file user@host:/dir
truncate -s 10G ./file
cp from to
Show real size and logical file size:
ls -lhs file
Show real file size:
du -sh file
rsync -aS file user@host:/dir