CentOS 5 :: How To Restore From Image Backup
Apr 21, 2011
I have 4 different servers with exactly the same hardware. I set up one of them to have a centos install with all the basic stuff I'd like running on each one. I then created an image of the harddrive with the operating system, and stored it on an external drive. I used dd to copy the external image to one of the new machines. It worked fine, everything booted up as normal and with a few tweaks everything was great. The problem is that the drive is rather large (500gb) and it takes days for dd to copy it over. I decided to try a different route, I booted to a usb (using the linux distro on the ultimate boot cd pre-loaded with gparted). There are two partitions on the external drive, a small (100mb) partition which can easily be copied over with gparted, and the larger 480+gb lvm partition.
Gparted doesn't support lvm, so I used fdisk to create a new lvm partition on the new machine, and then pvcreate/vgcreate/lvcreate to re-create the same volume groups/logical volumes that are in the image on the external harddrive. I rsync'ed all the information over from LogVol00, and made the same swap partition LogVol01 (which took WAY less time). I disconnected the hard drive and renamed the volume group to VolGroup00 (initiall I named it differently, since linux doesn't like having the volume groups named the same). I can mount the LogVol00 partition and see all the files as they should be. But when I try and boot up, it doesn't even go to grub, I just end up with a blank screen and blinking cursor. How to make the drive bootable? Alternatively, a better strategy than using dd to restore this image??
View 2 Replies
ADVERTISEMENT
Aug 27, 2009
My laptop is Windows XP Fedora 11 dual boot. I am replacing it because of a defect. The original laptop is fairly new so I could simply start from scratch and setup everything again. But I was thinking there might be a way to do an image backup and restore. My new laptop will be identical to the old one
View 1 Replies
View Related
Apr 23, 2011
I used Clonezilla an older version not the latest to backup an entire NTFS Windows XP drive to DVD last year. I have a series of three (3) of these DVD's but now cannot restore the backup image back to the same PC. The problem is that when booting with Clonezilla I don't have an option to restore from a CD or DVD drive since the computer comes with two working CD/DVD drives that are detected by the BIOS when the POST is displayed. I used one of these drives to boot with Clonezilla and the other one containing the backup image Disk 1 of Disk 3. Clonezilla only detects the two hard drives and a USB drive which is removable. Is there a bug in the restore process because it allowed me to backup the entire image of the hard drive onto a DVD last year but this time around there are no CD or DVD drive options available to choose other then the CD drive Clonezilla was used to boot up.
View 8 Replies
View Related
Jan 4, 2010
Image Hard drive Ubuntu Operating system 9.10 Complete back up and restore. Changing over Hard Drives need a complete back up not just save files. So the image can be restored on any hard drive that restores the computer to its original state before it was imaged.
View 14 Replies
View Related
Sep 30, 2009
this message is a bit long but I've been pulling my hair for 2 days now. I am installing Centos 5.3 on a Dell Powerege R610, x86_64 flavour. That part goes well. next is testing backup & restore. I've tried MondoArchive, that I used on other OS, but it fails to remount the LVM correctly, and disk formatting fails. Now, I am trying another way: boot with centos 5.3 i386 live cd, take the disks online, cpio to a usb file everything but: /tmp /proc /boot /dev /etc/fstab /etc/mtab
then, reinstall a fresh centos to erase the disk (crash simulation) and to simulate the initial restore I would do after a crash. From there, I go again with the livecd, mount r/w the logical volume, cpio -i all my files, and reboot. It sort of goes well. system reboots correctly - it loads all my drivers (even asterisk & dahdi and the T1/E1 card light goes green...), starts KDE, but from there I get an infamous error message preventing me to log in "Your session only lasted less than 10 seconds" - looking in the details, i get this message "could not exe /etc/X11/xinit/XSession default' - but I dont think X11 has so much to do with it...
When I go to a text console (ctrl alt f1), and try to log, no luck either - and no time to see why. I've modified initrd to level 1 - there I get the single user prompt, that's ok - but init 3 brings me to a screen where I cant log (either with root or a user) - there is a clear difference between an incorrect password and a failed login - the later, as soon as I enter the password, I return to a login prompt Now my questions. 1/ how can I make a "system backup" of Centos 5.3 x64 -ie after a crash, I want an image tha t I will restore and bring back OS + Applications (data can be backed up separately) 2/ what is wrong with my restore thru livecd ? why cant I log into the system ?
[Code]..
View 2 Replies
View Related
Mar 31, 2010
We have a linux server (centos 5.2 final), with postfix smtp server, webmin, usermin and sugar crm
We need to backup all the data, and then perform a restore on a clean machine, without any OS installed yet.
I look into many pages that says that doing a backup on linux it's as easy as pack all the files in a .TAR file. Unpacking the tar will restore the system to it's original state. Also, i'm confused because if we perform a backup and mysql has active connections, perhaps the database would be inconsistent or corrupted. In the restore step, do i need a live CD in order to boot up linux command prompt? �Can it be from any linux version, or only centos version?
View 3 Replies
View Related
Sep 21, 2010
I plan on creating a backup of my Windows installation using DriveImage XML (unless you have a better idea ) then wiping my hard drive clean, creating a new partition for the backup install to live, and then installing Ubuntu on another partition. Is there a method of restoring my Windows backup to partition 1 by using the live cd? Then of course I can install ubuntu to partition 2.
View 2 Replies
View Related
Apr 25, 2011
Client has a server running 5.5 (I think) and it they moved locations. This server is used in other locations (state) via ssh tunnel as well so they can all access files.
When attempting to boot up I get screenshot 1 (superblock errors)[url]
They supposedly have a backup on a hot swap scsi and I want to know how/if I can restore it using that backup if I cant fix the superblock boot/error issue.
I took some other screenshots:
[url]
[url]
[url]
View 1 Replies
View Related
Dec 16, 2010
I have a CentOS 5.5 server that has just recently been updated to 5.6 running PostgreSQL 8.4 and Drupal for an internal website. The server is also acting as a shared network storage between the Linux server and Windows desktops with Samba.
I just recently purchased a license to run Symantec Backup Exec System Restore 2010 for Linux and the only operating systems that are supported are RedHat and Suse Linux.
Does anyone know of a nice open source solution that we can use to create backup images of the server?
In the event of a server crash, we want to be able to rebuild the server via a bit-by-bit backup image.
The CentOS 5.6 is 32bit
View 5 Replies
View Related
Jul 26, 2009
I have a CentOS5 server with a 1tb hard drive.There is only 80gb of data on that huge drive and now I want to make a bare metal recovery backup using AcronisMy question is, how can I estimate the amount of time the backup will take and the size of the image file? Is it based on the size of my drive or is it based on the amount of data on the drive?
View 1 Replies
View Related
May 10, 2011
I install and tested Restore EE Backup server on a test PC with basic configuration and its working fine.
[URL]
The issue i have is where is the location these backup snapshots or files are saving? I want to add a separate Storage to save the backup?
View 1 Replies
View Related
Feb 4, 2011
I am now preparing myself to upgrade lenny to squeeze and decided to do a backup on my system. I used backup-manager to do the job and it worked fine. how do you restore said backup data?
View 4 Replies
View Related
Jun 12, 2010
I have been looking for a complete backup solution like "Acronis True Image Backup and Recovery" on Windows for Slackware a while.
View 12 Replies
View Related
Feb 13, 2011
One Laptop. One hard drive. Two OS's. Windows 7 is shot to hell from installing and uninstalling to much crap. Windows & WILL rewrite my MBR. How do I back up my far superior GRUB MBR and restore it over the wincrap MBR once I am done reinstalling Windoze?
View 6 Replies
View Related
Sep 30, 2010
I'm now using Ubuntu 10.04 with ext4 and for the second time in my life I experienced data loss (not for real: I got backups) and I'm assuming problems with the recent ext4 fs.
I want to restore all of my configurations (/etc and the like), data and home on reiserFS: is this possible? What to do in order to accomplish that?
View 2 Replies
View Related
Jun 27, 2010
How to take Backup & how to do restore in GnuCash. I need to take backup of my all accounts & all transactions
View 1 Replies
View Related
Jul 24, 2010
Im running ubuntu 10.04 and I recently had a little adventure whilst trying to disable KMS and deleted all the stuff out of the # kopt line and added the nomodeset thing.Now I crash to easybox everytime I try to boot, how do I restore the backup of said file that I noticed beside it in the folder. Also I saved one to my desktop.
View 7 Replies
View Related
May 6, 2011
how to take tar backup and restore in mysql,Iam new to mysql,i searched in google but i did not get the exact one.
View 4 Replies
View Related
Feb 13, 2009
Do You have any good script to backup and restore Subversion ?
View 1 Replies
View Related
Jun 10, 2015
I have Lenovo IdeaPad z510 laptop.My HDD SMART status is currently "failure". As my laptop is under warranty I can return it to lenovo. So I want to backup as much data as possible (everything is readable). I currently have 3 operating systems: linux xubuntu 14.10, debian 8 and windows 8.1 (triple-boot?). I want to back up only my current debian installation. There are 3 partitions for debian: root (about 50GB), home (>200GB) and swap. I know that I can backup the whole partition using:
Code: Select alldd -if=/dev/sdaX -of=/locaton/of/backup -something
And create .tar file with the whole home directory.
how to restore it later. In /etc/fstab there are references to UUIDs, and as I understand, with new HDD these UUIDs would be different. And possibly the whole partition table would be different. And how would I restore GRUB?I can't make full image of my disk simply because I don't have disk to store it on.Is it possible to create backup on my current debian installation without actually making full HDD backup? Would it work if I would install debian on new disk, then from LiveCD overwrite it with my backup and modify /etc/fstab to match new partitions?
View 14 Replies
View Related
Feb 22, 2010
I have fedora 12 (amd64) on desktop. I was wondering if there a way to backup and restore all my downloaded updates since installation?! In the same manner that debian has aptoncd. I am planning to migrate on all data to a new partition with clean install and then just move the updates there.
View 6 Replies
View Related
Nov 5, 2010
I do regular full and incremental backups using dar. All disk volumes are labeled and mounted by label. There is no other operating system installed. I built a new system but due to having to RMA a disk, I built the openSUSE system on a disk from the backup cycle. This Maxstor disk has problems which is why it was moved into an external box and the backup system. I now have a replacement disk and wish to replace the Maxstor before it dies. I initially tried a disk to disk clone with clonezilla but this died complaining that a small target partition was smaller than the source partition. It had created the partition and the start and end sectors were identical. There are no problems with the new disk.
I decided that it would be a good opportunity to test a full system disk restore from the backups. I have in the past restored individual files and partitions but have never restored onto a bare boot disk. I have restored and labeled all 6 partitions. The partition containing / has been marked as active. /boot is included in the partition containing /. fstab is valid, menu.lst is valid, device.map needs editing but this is not a problem.
What do I need to do to make this disk bootable. I have looked through the GRUB documentation but if you try some standard GRUB commands in 11.3 you get messages saying don't do this use YAST. I have seen other suggestions ranging from trying to start the not supported system repair option to using dd to copy the MBR which seemed to trash the partitions in the users extended partition.
The YAST bootloader displays "boot from the root partition". I assume that this is currently what is happening rather than what YAST thinks might be a good idea for next time. I suspect that all I have to do is dd the first 512 bytes of the root partition. If this is the case I can add this to the backup process. While I automate backups I do not automate restores. Each restore tends to be different and I am not sure of the best way getting grub to work on a bare disk restore.
View 9 Replies
View Related
Feb 10, 2011
I'm using ubuntu for a few weeks now and i created a backup script that can copy some folders into a .tgz file. Now i want to place back the folders to where they come from and overwrite the original folder. like the /home folder in the .tgz file overwrite the /home folder on my harddrive. I already tried to do this with: tar xvpfz filename.tgz. But after that the folders came in the same folders as the backupfile stands.
How can i do this the right way?
View 1 Replies
View Related
Mar 19, 2011
How to Backup & Restore Installed copy of my UBUNTU 10.10.If I create any ISO or Recovery CD /DVD, saves time to fresh install & update & install favorable software.I use Mobile to connect, works slow to download.
View 3 Replies
View Related
Apr 9, 2011
I'm trying to use this tutorial (URL...) to backup my Ubuntu 10.10 (ext3) operating system. I've successfully gotten it into a TAR file on my external hard-drive, but inside the archive are 2 folders: sda5 and media (/media/sda5/), sda5 ofcourse containing my operating system.
I run VMWare as my virtual machine software, but I could easily run Virtual Box if the situation calls for it. On my virtual machine I created an Extended partition, made a 2GB swap space and the rest is ext3 (ext3 space is mounted as sda1) (at this point, Swap is OFF) here is what I've tried to do inside the virtual machine to restore:
Code:
sudo -s
mkdir /media/FROM/
mkdir /media/TO/
mount /dev/sdb1 /media/FROM/
[Code]...
but instead it just creates the directory sda5 under media of the live ubuntu cd Do I need to CHRoot in these conditions? AFTER I get the files successfully into the virtual machine, how do I go about restoring the grub2 bootloader? Right now I haven't tried to restore grub on my hardware, but I would be interested in doing so. There are a vast immense amount of forum posts about this subject, but all are to mixed results. Can anybody tell me the absolute definite way to restore grub2 successfully, I don't want to try something if it's going to mess up my install, whether I've backed up or not.
for further reference, here is a link to the previous (failed) thread I made about this same subject:
[URL]...
View 4 Replies
View Related
Jun 7, 2011
I have an encrypted volume, which contains LVM volume group with volumes. I have unencrypted /boot and the rest is on that encrypted lvm. I have a backup I want to revert to, but that backup has a different kernel, and I don't know how to update the /boot since I have suspicions that the system won't boot if I just restore / . I think I need to run update-initramfs and grub-install at some point..
View 9 Replies
View Related
Aug 25, 2010
I have requirement on shell scriptingre scripts for the following:
1) Full backup(application and DB): tar all the files and database and copy them in the backup server
2) Incremental back up of files: backup of all the updated filester the last backup.
3) Restoring of backup files: restore the backup files from the backup server to the application server.
View 3 Replies
View Related
Feb 11, 2010
my old 80gb pata HD showed a dual boot Ubuntu - XP on startup, although ubuntu never worked, onlly XP booted.
Recently I tried to Restore a Macrium backup on one of its two partitions, & spoiled something.
On boot up it says:-
GRUB loading stage 1.5
GRUB loading please waite.....
Error 22
I tried to reinstall Ubuntu 10.8 with no success, & also XP with "R" for repair again with no success.
View 1 Replies
View Related
Apr 13, 2010
O/S: Fedora 12
I am newbie in linux. What I want to do is: Make backup for my file system, cos I learn how to configure servers. So if I made some thing wrong, I want to be able to restore the default setting for my files. Instated of install new O/S.
View 4 Replies
View Related
Apr 11, 2011
writting shell scripts,i searched in google but could not get the exact,pls can anyone help how to take mysql backup & restore using shell scripts.
View 3 Replies
View Related