Linux/Sparse files: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 23: Line 23:
tar -Scf file.tar inputfile
tar -Scf file.tar inputfile
</pre>
</pre>
== Links ==
* https://wiki.archlinux.org/index.php/Sparse_file


[[Category:Linux/System]]
[[Category:Linux/System]]
[[Category:Linux]]
[[Category:Linux]]

Revision as of 11:08, 22 October 2019

check

du -h file
du -h --apparent-size file


Make existing files sparse

fallocate -d file


Copy sparse file

cp --sparse=always inputfile outputfile


Tar sparse file

-S / --sparse
tar -Scf file.tar inputfile

Links