LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-06-2012, 07:31 AM   #1
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
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?
 
Old 07-06-2012, 09:23 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
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.
 
Old 07-06-2012, 09:42 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by uk.engr View Post
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???
 
Old 07-06-2012, 11:34 PM   #4
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
Post

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.
 
Old 07-07-2012, 04:02 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by uk.engr View Post
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.
 
Old 07-07-2012, 09:17 PM   #6
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
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.
 
Old 07-11-2012, 02:40 AM   #7
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
Quote:
Originally Posted by Knightron View Post
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
 
Old 07-11-2012, 03:30 AM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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!
 
Old 07-11-2012, 03:56 AM   #9
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
Yes you are right Soadyheid
 
Old 07-11-2012, 06:21 AM   #10
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-11-2012, 05:32 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
"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.
 
Old 07-12-2012, 01:22 AM   #12
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-12-2012, 07:05 PM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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 ...
 
Old 07-13-2012, 01:02 AM   #14
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-13-2012, 03:28 AM   #15
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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!
 
  


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
Tip; how to make a bootable backup using Linux and cron. oldwierdal Linux - Desktop 0 04-14-2012 05:59 PM
What is the best backup method to make a backup of a running Ubuntu server ? pmorin Linux - Software 9 09-28-2011 07:12 AM
HOW TO MAKE backup script LINUX CentOS5 copy data to another machine ytd Linux - Newbie 8 09-30-2009 01:54 PM
How to make backup Rjfreitas Linux - Newbie 3 11-08-2007 08:58 AM
dd to make backup of partition titopoquito Slackware 6 08-02-2006 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 AM.

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