LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-27-2005, 10:30 PM   #1
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Rep: Reputation: 15
Ask about backup technology


Hi,

Can anyone tell me about backup technology.


I'm need to do a backup, which backup the image from the original
harddisk to another new harddisk.

The purpose to do that for the security issue, which to prevent if anything is
happening for the original harddisk and the backup harddisk will be replaces in my linux box.

Any idea?

Thanks
 
Old 06-27-2005, 10:34 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
To create a disk image, use dd.
 
Old 06-27-2005, 10:53 PM   #3
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

Thank you for reply.

I'm not sure about dd, I did some reserch for disk images and also "dd"
command line. Please further details.

Or should I need to install any utilities software like Ghost....
please correct me if I'm wrong.

My intended is to "duplicate" the original harddisk to another new harddisk (as backup), which to prevent any happening for the original harddisk.

Could you please detail the alternative solution to implement it?

Thanks
 
Old 06-27-2005, 11:03 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If you want a bit-by-bit copy, do "dd if=/dev/hda of=/dev/hdb" for the proper drives.
 
Old 06-27-2005, 11:31 PM   #5
goonfui_wong
Member
 
Registered: Jun 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi Matir,

Thanks for the command line you provided.
So I probably no need to install any software for implement this.
Just "diskcp" command will do.

Base from the command line you give

dd if=/dev/hda of=/dev/hdb

Can I assume "/dev/hda" is the Source and "/dev/hdb" as Dest.
Please correct me if I'm wrong.

But at the beginning, what should I do for my new harddisk?
example formatting? and mountting?

I check from the website, I found the below command

dd if=/dev/fd0 of=myimagefile bs=18k
dd if=myimagefile of=/dev/fd0 bs=18k


Thanks
 
Old 06-28-2005, 08:44 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
In order to use the dd mechanism, the drive does not need to be formatted or mounted. if= is the input, and of= is the output.
 
Old 06-28-2005, 11:20 PM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Just use Partimage - its an open source program designed to do exactly this and it has network support.

If you're using it to backup non-root partitions then you can just run it from within your Linux distro (after unmounting the partitions first). If you need to backup the whole thing including the root partition then you'll need to download one of these LiveCDs which has Partimage on it and boot your machine off it:
http://www.sysresccd.org/ (smaller contains only essential system rescue tools)
http://www.knoppix.org/ (larger - aims to be complete Linux system on a CD)


Also keep in mind that backing up from one hard disk to another in the same machine is not a safe or reliable backup method at all, since most data loss scenarios are just as likely to delete stuff off both hard drives (eg. rm -rf /*).

OTOH if you're doing it for system redudancy (ie. if hda fails you can just boot the machine up with hdb) then that's exactly what RAID was designed for. Its simple to setup Software RAID1 (a simple drive mirroring setup) in Linux and is far more likely to work properly than trying to copy the drive image every so often.

Last edited by tkedwards; 06-28-2005 at 11:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lenaguage and technology ancris LinuxQuestions.org Member Intro 4 10-29-2005 12:29 PM
simple backup process using server/client technology debloxie Linux - Networking 11 10-24-2005 02:58 PM
Applying computer/linux technology to InfraRed technology satimis Programming 2 02-02-2005 04:06 AM
new technology age.. student04 General 1 01-16-2005 01:47 AM
Technology Patents 320mb General 2 06-24-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration