Backing up and restoring RHEL 6.3 VM

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Backing up and restoring RHEL 6.3 VM
# 1  
Old 06-22-2013
Backing up and restoring RHEL 6.3 VM

Hi!
I am administering a system I didn't configure. I know it is a RHEL 6.3 VM image and there are others as well. How do I make a backup of the image and of the filesytems, in case I screw up the configuration.

How can I restore it as well.

My plan is this
1) Find out what kind of VM, and use the vm tools
2) Take a tar of important directories
3) Schedule filesystem backup

Any help would be appreciated.
Thanks md888
# 2  
Old 06-23-2013
Quote:
Originally Posted by md888
1) Find out what kind of VM, and use the vm tools
This is a sound plan, but how can we help in this? I suggest you go to the administrator of the system the VM runs on and you find out how the system file space is provided. It might be a LUN from a storage system (depending on the storage system you can take a backup there, even when running), a file on the host systems filesystem (power down the VM and simply copy the file), a bootable NPIV-provided share (use SAN systems methods, as above) and probably some other things i haven't mentioned here.

"Its a RHEL 6.3 i didn't set up" is a rather meagre description of your environment and whatever we can suggest will be as substantial as your description - that is: not at all.

Quote:
Originally Posted by md888
2) Take a tar of important directories
Simple. Backup "/path/to/somedir":
Code:
(cd /path/to ; tar cf - ./somedir | gzip -9 > /backupdir/somedir.$(date +'%Y%m%d').tar.gz)

Restore same:
Code:
(rm -rf /path/to/somedir ; cd /path/to ; gzip -cd /backupdir/somedir.<somedate>.tar.gz | tar xf -)

Quote:
Originally Posted by md888
3) Schedule filesystem backup
Use "cron" to schedule a (perhaps recurring) backup, but the real question is: which tool(s) do you want to use for this purpose. Depending on the answer you will have to do some or many preparations, or none at all.

Again: meagre description of environment leads to meagre/very generic answers.

From the "50 tips for better english": be more or less specific. ;-))

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Is it possible to install RHEL 7 on top of RHEL 6?

Hi We have RHEL 6.7 on an HP physical server and want to install RHEL 7 (not upgrade) on top of it by means of virtualization. Is it possible to install/configure RHEV/KVM virtualization on base RHEL 6.7 OS instance and then install RHEL 7 as a VM guest on it? If yes, could you please guide me... (1 Reply)
Discussion started by: magnus29
1 Replies

2. UNIX for Dummies Questions & Answers

Windows->RHEL->RHEL X11 Forwarding?

I know this question might have been asked a lot but couldn't find anything that worked. From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server 'C'. I need to be able to run GUI interfaces on server C which run on my Windows machine. I... (3 Replies)
Discussion started by: hr.prasan
3 Replies

3. Red Hat

RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data

Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I... (3 Replies)
Discussion started by: jstone4646
3 Replies

4. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

5. Shell Programming and Scripting

Need help in backing up of databases.

Hi Everyone, I am new to DBA stuff. I wonder if anyone can help me. Task is that, I have 10 databases and need to take backups of all the databases using data pump in Unix/Linux, compress them using gzip and use cron to schedule the job twice a day. Appreciate if anyone can help me in... (1 Reply)
Discussion started by: sreepriya0987
1 Replies

6. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

7. AIX

what am i backing up

we are running aix on are server. we would like to start doing online backups, but the software company that we use is not beeing much help on what files we are backing up. is there a command that will tell me what files that we are backing up. they offer a service that would back it up for use,... (3 Replies)
Discussion started by: shane.hankins
3 Replies

8. Solaris

Backing up the system

Hello Mentors, Before anything else I would like to thanks to all expert here especially Pressy as he guided me to recover our server from disk failure. I posted a lot of question from these forum site concerning on how to recover our server and luckly you guys help me. Our server is now up and... (6 Replies)
Discussion started by: eykyn17
6 Replies

9. UNIX for Dummies Questions & Answers

backing up

Ok I'm trying to backup a HD using ufsdump but no matter what I do it rewinds the tape after the dump. Now the tape isn't full (only 285mb) and I still have 6 more partitions I want to put on this tape. How can I stop the tape from rewinding because I can't think of anything. Also is there any... (4 Replies)
Discussion started by: merlin
4 Replies
Login or Register to Ask a Question