Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Backing up sparse files ... VM's and TrueCrypt ... etc



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/






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org