Backing up sparse files ... VM's and TrueCrypt ... etc
Tom Metro
tmetro-blu-5a1Jt6qxUNc at public.gmane.org
Thu Feb 18 16:45:13 EST 2010
Richard Pieri wrote:
>> tar -cf - /path/to/sparse | gzip --rsyncable > sparse.tgz
>
> For optimal performance with this trick you should zero out freed
> sectors on the sparse image and then compact the image. Very
> efficient usage of the storage, but it's slow and tedious.
That would be true if tar read the sparse file as an ordinary file, but
I'm assuming it knows how to properly skip over the holes. I see there
is an option to handle sparse files:
-S, --sparse
handle sparse files efficiently
I would expect with that option, you'll never see the junk that happens
to be occupying the unused sectors.
-Tom
--
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
More information about the Discuss
mailing list