best way to backup and compress the .vdi file ?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
tomaskCZ1
Posts: 11
Joined: 27. Feb 2008, 21:16

best way to backup and compress the .vdi file ?

Post by tomaskCZ1 »

What is the best way to properly backup with compression the .vdi file with the guest OS ?
Is tar.gz applicable or dd command with afterwards gz compression for example ?
stony999
Posts: 38
Joined: 29. Oct 2007, 01:38

Post by stony999 »

I usually do

Code: Select all

tar -czf xyz.vdi.tar.gz xyz.vdi
and it compresses a 4GB Windows machine to about 1.3 GB.[/code]
chungy
Volunteer
Posts: 132
Joined: 26. Jan 2008, 10:27

Post by chungy »

there's no need for tar on single files, just use gzip directly: "gzip file-to-compress"
tomaskCZ1
Posts: 11
Joined: 27. Feb 2008, 21:16

Post by tomaskCZ1 »

but "gzip file-to-compress" deletes the original file in the process, so do you use "gzip -c file-to-compress > backup.tgz" or any other method ?

As for the recovery is it 'gunzip -c > /path/file' then ?

Otherwise gzip compress the file nicely, I wonder if that gunzip method with rerouting the output is safe for the health of that file :)
Post Reply