Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
harddisk backup with diskdump
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Aphex3K
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 182
Location: Germany

PostPosted: Tue Mar 29, 2005 8:08 am    Post subject: harddisk backup with diskdump Reply with quote

Hey Folks,

I want to do an backup of my complete /dev/hda and put it via network on another server. I figured out a strategy tha compresses the image and splits it into chunks of 700MB (Windows doesn't like files transfered to a share gt 2GB :( ). Now my question is, does this work? And does the restore work also? (/mnt/server/incoming is the directoy where the remote server share is mounted)
Code:
# cd /mnt/server/incoming
# dd if=/dev/hda | gzip -c | split -b 700m -d - backup.gz.

This should do the job i think?! And to restore the backup i do the same thing in reverse order:
Code:
cat backup.gz.* | gunzip | dd of=/dev/hda

Is there anything that i forgot? Any Suggestions?
_________________
managing a server running gentoo...
Back to top
View user's profile Send private message
Marctraider
Guru
Guru


Joined: 24 Dec 2003
Posts: 387

PostPosted: Thu Feb 09, 2006 8:34 am    Post subject: Reply with quote

Ehm, doesnt dd require a 'of' parameter as well?

Perhaps you should just cat the drive (/dev/hda) and gzip it immediately, no need for dd i think :)

then split it, but i dont know if that command works, never used it.

and then for the other thing



cat the file | gunzip stuff

then unsplit :)

I have to try this as well, i have my own backupscript that tar's everything up, but i wonder if this hd catting and putting it in a big gzip will work better.
I dont think so, because there is still data everywhere on the disk that are not indexed files, hell, perhaps even traces from a former ntfs/fat32 partition...


I think i keep my self-made tar backup script :) its more efficient and when you extract it back to disk the files are al defragmented :)
_________________
MOBO: Maximus II Gene
RAM: DDR2 OCZ 4GB
CPU: E6400 Conroe
GPU: HD2600XT
SATA: 3x 250GB.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum