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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-06-2012, 07:31 AM
|
#1
|
Member
Registered: Apr 2012
Posts: 131
Rep:
|
How to make backup of LINUX
Assalam o Alaikum!
How to make backup in linux of overall file system? Means if any error cause to restrict to boot linux or any crash occur in LINUX OS then we can use our backup. Like most commonly in Windows we have ghost software to make backup image of Windows OS. So what are possible way for backup our stuffs in linux OS?
|
|
|
07-06-2012, 09:23 AM
|
#2
|
Member
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542
Rep:
|
Hi uk.engr,
If you are looking something similar to Ghost but the linux way, you can use CloneZilla
http://clonezilla.org/
Best regards,
Angel.
|
|
|
07-06-2012, 09:42 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,194
|
Quote:
Originally Posted by uk.engr
Assalam o Alaikum!
How to make backup in linux of overall file system? Means if any error cause to restrict to boot linux or any crash occur in LINUX OS then we can use our backup. Like most commonly in Windows we have ghost software to make backup image of Windows OS. So what are possible way for backup our stuffs in linux OS?
|
Aside from Clonezilla, check out mondoarchive, systemimager, and mkcdrec. This has been asked (and answered) on here MANY times, so a quick search will turn up lots, as will a Google search.
Also, you provide no details...version/distro of Linux? Environment you're running in? Number of machines to back up? To what media? How do you want to restore them? Virtual or physical machines???
|
|
|
07-06-2012, 11:34 PM
|
#4
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep:
|
Quote:
Also, you provide no details...version/distro of Linux? Environment you're running in? Number of machines to back up? To what media? How do you want to restore them? Virtual or physical machines???
|
Fedora 14, LAN environment here about 20 PC. what about media I think for every PC if we write one DVD as its image (I don't know better about it). I want to restore by just mapping the backup image over existing OS? Its Physical machine.
|
|
|
07-07-2012, 04:02 PM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,194
|
Quote:
Originally Posted by uk.engr
Fedora 14, LAN environment here about 20 PC. what about media I think for every PC if we write one DVD as its image (I don't know better about it). I want to restore by just mapping the backup image over existing OS? Its Physical machine.
|
I'd start either by upgrading. The latest Fedora is 17, but if you want to be in a professional environment, you need to think longer-term. Use CentOS or a similar distribution with a long release/support cycle. This will keep your machines patched/updated, and give you consistency across all your workstations, which will make things easier to diagnose/upgrade/fix in the future.
Next, think about what you just said..you have 20 PC's. If the PC's only use 8 GB of disk, that's 160GB of storage, just for ONE snapshot of each workstation. Multiply by how many snapshots you want, then think about what is going to back that SERVER up, multiplied by versions, etc. If all the physical workstations are the same, you could get away with building one workstation, getting EVERYTHING working, configured, etc., and taking one snapshot. Make sure the users work files are stored on the server, accessible over the network, and you can just have a dead workstation network boot to reload the snapshot.
There are LOTS of moving pieces to this, not even considering diskless workstations, which is why considering ALL the details is important. Not enough is stated to make a good recommendation.
|
|
|
07-07-2012, 09:17 PM
|
#6
|
Senior Member
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
|
Gday mate, clonezilla is a popular live distro for doing such a thing.
I just use the regular and arguably slower dd command. It makes a system image file which is very easy to use. by the way, i don't know what Windows version you're using but Windows 7 comes with a native tool for making system image file backups and i have used it and it worked great too.
All three of these tools, Clonezilla, dd, and Windows system image file creator, can make img files of the entire hard drive or of separate partitions, or at least dd does.
|
|
|
07-11-2012, 02:40 AM
|
#7
|
Member
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542
Rep:
|
Quote:
Originally Posted by Knightron
All three of these tools, Clonezilla, dd, and Windows system image file creator, can make img files of the entire hard drive or of separate partitions, or at least dd does.
|
CloneZilla does it too and compress the image too, so it take less space.
Angel
|
|
|
07-11-2012, 03:30 AM
|
#8
|
Senior Member
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,690
|
Quote:
I think for every PC if we write one DVD as its image
|
A DVD holds about 4Gb of data and most desktop PCs have 500Gb hard disks so it looks like you'd go through quite a few DVDs and a fair amount of time to just take a snapshot backup never mind instigating a proper backup strategy. (Yes, I know you'll not have filled the whole 500Gb HDD but...)
Play Bonny!
|
|
|
07-11-2012, 03:56 AM
|
#9
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep:
|
Yes you are right Soadyheid
|
|
|
07-11-2012, 06:21 AM
|
#10
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep:
|
Assalam o Alaikum!
For the first time I want to run clonezila on VBOX but it gives this error " This Kernel requires an X86-X64 CPU. but only detected i686 CPU. Unable to boot. please use kernel appropriate for your cpu."
Then I run it with physical machine then it works fine. But I don't want to do first experiment with my physical machine. Kindly help me regarding VBOX.
|
|
|
07-11-2012, 05:32 PM
|
#11
|
Moderator
Registered: Mar 2008
Posts: 22,127
|
"For the first time I want to run clonezila on VBOX but it gives this error "
Did you boot the VM to the iso or cd of clonezilla? It should be a 32 bit OS and never say that message.
|
|
|
07-12-2012, 01:22 AM
|
#12
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep:
|
With reference of http://clonezilla.org/
Minimum System Requirements for Clonezilla live:
X86 or x86-64 processor
196 MB of system memory (RAM)
Boot device, e.g. CD/DVD Drive, USB port, PXE, or hard drive
MY VM
[root@ZXDSL831II fedora8_4]# getconf LONG_BIT
32
[root@ZXDSL831II fedora8_4]# uname -m
i686
Means my CPU and OS both are 32 bit. It fulfills above requirement. But When I boot my VM via both iso or clonzilla cd it give this message This Kernel requires an X86-X64 CPU. but only detected i686 CPU. Unable to boot. please use kernel appropriate for your cpu.
|
|
|
07-12-2012, 07:05 PM
|
#13
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,398
|
According to this http://www.cyberciti.biz/faq/linux-h...64-bit-or-not/ you check for the lm flag (-> 64).
I've got a machine here that has lm flag set for the for cpus, but it returns 32 for your getconf test ...
|
|
|
07-13-2012, 01:02 AM
|
#14
|
Member
Registered: Apr 2012
Posts: 131
Original Poster
Rep:
|
Ok I got solution. I have downloaded 3 ISOs of clonezila for i486,i686 and x86_64. VBOX only works with i486. In Lab those PCs that have 32bit cpu works fine with i686 iso. those pcs having 64bit processor works fine with x86_64 iso. Now I have some other questions.
How should I utilize clonezilla?
1.In my environment often I have to ready new PCs (with feodra 14), So I want to make clone entire DISK of one PC. Then every time I need to prepare a new system then I apply that image is it possible? if yes what parameters should I take in considerations? If I make a image of 1TB hard drive with having fedora only, is it possible to implement its image on a hard disk of 350GB?
2. I am not willing to make backup of every PC on my network becoz I don't have such media to store such large backups. So I want to backup only bootloaders partition that is sda1, so is it possible to make image of only one PC's sda1 partition and then is it applicable to all PC's sda1? or should I make separate image of every PC's sda1.
|
|
|
07-13-2012, 03:28 AM
|
#15
|
Senior Member
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,690
|
Quote:
If I make a image of 1TB hard drive with having fedora only, is it possible to implement its image on a hard disk of 350GB?
|
No, an image is a bit by bit copy of a disk so your 1Tb disk can only be imaged to a 1Tb disk. The Image copier will copy "empty", i.e. non written data sectors of the disk as well.
Yes, you can make a system image which you can use to stage new PCs. That's how most companies do it. Different departments with different applications on their PCs will have a different image installed so you can end up with PCs with differing builds dependant on their use.
You can probably end up with a few DVDs holding the different system images. This would allow you to restore a system quickly. Note that the PCs should all be the same make/spec so any drivers, etc match and are appropriate. Using an image from an HP desktop to build a Dell desktop will cause no end of problems.
Then there's the bit you REALLY need to back up; the data... But your post implies that may not be your problem.
Play Bonny!
|
|
|
All times are GMT -5. The time now is 10:22 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
|
|