LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-11-2011, 03:59 AM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
How to Backup Linux servers and burn to DVD


My right hand is damaged temporally. I am going to cut this short.

I got a Web Server running great. But I need to back it up. It doesn't for some reason detect either of my USB External HD's. How can I make a TAR or something and burn it to DVD and then be able to restore using that disk. Thank U in advance.

Centos 5

Last edited by kitek; 01-11-2011 at 04:00 AM.
 
Old 01-11-2011, 04:02 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Got this result in 0,24 seconds using Google:
Backup data on RHEL/CentOS to DVD
I believe that'll answer your questions Also the man page for tar can shed some light in the darkness:
Code:
man tar
Kind regards,

Eric
 
Old 01-11-2011, 04:24 AM   #3
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by EricTRA View Post
Hello,

Got this result in 0,24 seconds using Google:
Backup data on RHEL/CentOS to DVD
I believe that'll answer your questions Also the man page for tar can shed some light in the darkness:
Code:
man tar
Kind regards,

Eric

thanks for the info. Glad I got a response that fast. I will follow those instructions and give you the results.
 
Old 01-11-2011, 04:29 AM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
If you have a second machine with a working drive, you can use netcat to transmit the data over the network and write it to disk on the remote machine.

A word of caution, be careful with file permissions and make sure that they get saved and restored correctly. Sometimes, especially if you use compression, you need to set extra flags for this purpose.

If you want to make an entire image of the machine or partition, dd can be very useful for this purpose. By first filling the unused space with zeros and then using compression, you can deflate the drive image down massively.
 
Old 01-11-2011, 04:38 AM   #5
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Noway2 View Post
If you have a second machine with a working drive, you can use netcat to transmit the data over the network and write it to disk on the remote machine.

A word of caution, be careful with file permissions and make sure that they get saved and restored correctly. Sometimes, especially if you use compression, you need to set extra flags for this purpose.

If you want to make an entire image of the machine or partition, dd can be very useful for this purpose. By first filling the unused space with zeros and then using compression, you can deflate the drive image down massively.
I like this reply and I am interested in it very much. Could U either tell me how or show me a link to work on it? Sounds kinda like two servers work together (lack of the real word) I'm tired obviously. This time of night CST. I see it as redundancy Please reply. Thank you.
 
Old 01-12-2011, 03:36 AM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Here is a pretty good link that shows how to accomplish this. The Wikipedia link looks really good too. It also has some tips regarding how to periodically receive the status of the operation by suspending and resuming the process.

Basically, netcat is used to create a raw stream from one machine to another. You combine this with the dd program which will read a partition or an entire drive, byte by byte and pipe the output through the netcat pipe. You can also combine this with a compression algorithm, such as bzip or gzip to both compress the data stream and the image so that it takes less transfer time and less storage.

You can also make creative use of dd to fill up the unused space of the hard drive, prior to this operation. This will allow you to greatly deflate the amount of storage required because the whole blocks of zero data can be compressed to a small amount. This is shown in the Wikipedia link above, but you simply create a blank file with 'touch file.tmp' and then fill it with 'dd if=/dev/zero of=file.tmp bs=1M' The operation will 'error out' when the disk is full and then you can simply erase the file.

On the sending end, you will want to use a live CD instead of running from the hard drive being imaged. In fact you won't even want the partition/drive being imaged to be mounted. You also need to be *VERY* careful with the DD command. It takes a few parameters, most notably the IF (input file) and OF (output file), works on a very low level and is not forgiving. If you get these wrong, you WILL LOSE your information. This is why it is highly recommended that you back up critical data before using this command.
 
Old 01-12-2011, 08:31 AM   #7
Cerephim
Member
 
Registered: Mar 2005
Location: Dayton, Ohio
Distribution: CentOS
Posts: 49

Rep: Reputation: 0
I use a utility called Mondoarchive.

It'll do bare metal restores from media (CD or DVD).

It'll install via RPM, also
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DVD burner don't burn dvd anymore (but burn cd without problem) 0kage0 Linux - Software 4 11-29-2010 12:55 AM
I need a backup program that will create files I can burn to DVD royeo Linux - Newbie 2 09-01-2006 04:35 PM
LXer: Howto: Linux write (burn) data to DVD or DVD/RW at shell prompt LXer Syndicated Linux News 0 07-11-2006 03:21 PM
Backup Solutions for Linux Servers lionking_x Linux - General 8 03-27-2006 12:50 PM
Can't burn KDar backup to DVD (slices too large) abisko00 Linux - Software 9 12-09-2005 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:16 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