View previous topic :: View next topic |
Author |
Message |
Aphex3K Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/40591211240c6db348b2df.gif)
Joined: 18 Nov 2003 Posts: 182 Location: Germany
|
Posted: Tue Mar 29, 2005 8:08 am Post subject: harddisk backup with diskdump |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Marctraider Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/193923065140cfa799462bd.jpg)
Joined: 24 Dec 2003 Posts: 387
|
Posted: Thu Feb 09, 2006 8:34 am Post subject: |
|
|
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 ![Smile :)](images/smiles/icon_smile.gif) _________________ MOBO: Maximus II Gene
RAM: DDR2 OCZ 4GB
CPU: E6400 Conroe
GPU: HD2600XT
SATA: 3x 250GB. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|