Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-07-2006, 12:42 AM
|
#1
|
|
Member
Registered: Jun 2006
Posts: 40
Rep:
|
Whole system backup and restoration
I'm really new to linux. I wanted to backup my whole suse9 system. Is there some books or other specical commands to do this one? I have also to learn how to restore suse 9 from the backup copy. Please help.
Thanks
Best regards,
newbie_adm
|
|
|
|
09-07-2006, 04:55 AM
|
#2
|
|
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 741
Rep:
|
i only use tar to backup and so far testing restore no problem occured with my backup , but i dont know if later someone might suggest good backup for you and for using tar this is the way
i use
1) Backup to USB disk for my FC4 system
Code:
# cd /
# tar -cvjf /media/usbdisk/FC4-NC.hda6.tar.bz2 --exclude proc --exclude export --exclude dev --exclude media /
cheers
|
|
|
|
09-07-2006, 06:11 AM
|
#3
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,570
|
Dar is a good backup tool. The TUTORIAL has step by step instructions for making backups, listing the backup, and restoring (whole or partial).
There is also a GUI frontend for Dar, called Kdar.
|
|
|
|
09-13-2006, 11:03 PM
|
#4
|
|
LQ Newbie
Registered: Sep 2006
Posts: 3
Rep:
|
Quote:
|
Originally Posted by routers
i only use tar to backup and so far testing restore no problem occured with my backup , but i dont know if later someone might suggest good backup for you and for using tar this is the way
i use
1) Backup to USB disk for my FC4 system
Code:
# cd /
# tar -cvjf /media/usbdisk/FC4-NC.hda6.tar.bz2 --exclude proc --exclude export --exclude dev --exclude media /
cheers
|
tar has so many versions, I wonder if your backup picks up:
/usr/source/kernels/<more directories>/
.../acpi/sleep/proc/...,
.../cpu/freq/proc/...,
.../keys/debug/proc..., and so on
There is usually a lot of stuff under
.../include/media/... as well.
Example full path:
/usr/src/kernels/2.6.9-34.EL-i686/include/config/acpi/sleep/proc
If u have a non-restored system might wanna chk & c
|
|
|
|
09-15-2006, 11:46 AM
|
#5
|
|
LQ Newbie
Registered: Dec 2005
Posts: 4
Rep:
|
Full OS Backup/Restore of RHEL4 from TAR
This is my first post and I, too, would like some help with performing a full backup/restore. I am running RHEL4 on 2 identical boxes (1 Production, and 1 Development). I'd like to practice performing a baremetal restore of the Production to the Development box.
My basic understanding is that if I perform a proper backup using DD of the PROD box, then I can perform a basic install of the RHEL4 OS on the DEV box and then perform a restore of the TAR from PROD on it, and DEV should come up identical to the PROD box.
Any good hints, links, tutorials, or books to reference would be most helpful.
This looks like a really great site and hope to learn much soon!
Thanks for any help you may provide.
DWCOFFIN
|
|
|
|
09-16-2006, 01:58 PM
|
#6
|
|
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 741
Rep:
|
OMG!! two another question come to the newbie_adm question
BTW for info , what i have done restore to another
computer the system is up but then
once up i will update new kernel on the spot
so there me no need to think for, wheater its copy all the folder/files
inside the kernel
|
|
|
|
09-19-2006, 10:25 AM
|
#7
|
|
LQ Newbie
Registered: Sep 2006
Posts: 3
Rep:
|
Be careful, because users create whatever directories they want to. Im a developer, and have several 'dev' directories of my own, and a few 'proc' as well, and my mp3 collection is part of my own 'media' directory tree.
Arbitrary kernel updates introduce variables into the development process that may not be appreciated by everybody.
One of my many wives is from malaysia, but Im sure the American forces have a trap waiting there for me. So, I spend all my time in this bunker writing Linux code.
It rocks, bro.
|
|
|
|
01-09-2007, 09:30 AM
|
#8
|
|
LQ Newbie
Registered: Dec 2005
Posts: 4
Rep:
|
Newbie use of dd
Well, it's been 4 months since my original post about full backups/imaging and restoring. No responses, so I thought I would update here what I've learned in hopes of helping others.
1.) I found a great site here on LinuxQuestions.org Just do a search forums with "Learn the DD Command Revised".
I setup a Linux environment by downloading some VM Appliances. I attached another Hard Drive to the Linux VM and performed a DD from /dev/sda to /dev/sdb. Then removed /dev/sda and booted /dev/sdb as /dev/sda. It booted up exactly.
The command I used was:
dd if=/dev/sda of=/dev/sdb
2.) I then wanted to see how to create the image of /dev/sda to a file. So, I found another link that gave me a good example of this at:
http://www.debianhelp.co.uk/ddcommand.htm
So, I again used my Linux VM with 2 internal drives [/dev/sda(8GB) and /dev/sdb(8GB)]. I did a fdisk on the /dev/sdb drive and created 1 partion with the file system ext3. On the /dev/sdb1 partition I created a folder called backup which is where I wanted the image file to be written.
The command I ran was:
dd if=/dev/sda | gzip > /mnt/sdb1/backup/sda.gz
The command wrote the sda.gz file in about 13 minutes. Of course this is all logical, since it's a VM, but the source disk had 2.3GB of data, the file was 1GB in size. Not a bad compression ration!
3.) That's all fine and good, but the proof is in the pudding, so to restore it. I didn't want to risk destroying my /dev/sda disk so I attached another 8GB drive as /dev/sdc. I did nothing as far as fdisk to create partition(s) on this drive.
To restore the file to the /dev/sdc drive I ran the following command:
gzip -dc /mnt/sdb1/backup/sda.gz | dd of=/dev/sdc
After another 13 minutes it was restored. To prove it was good. I shut down the Linux VM, removed the /dev/sda and /dev/sdb drives and booted the /dev/sdc as /dev/sda. It came up perfectly!
I'm really pleased by the results and hope this helps someone else. Next on the list is to try and run this DD command and copy the image over the network using 'netcat' or some other network shell command.
All further posts will be made in a more appropriate forum, but wanted to close out my request with some information.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:04 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|