LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-05-2015, 07:05 PM   #1
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 53

Rep: Reputation: 0
Upgrade or Change Distro, whilst keeping all data


This may not be a newbie question, but to the pros, it is.



I got a CentOS 6.6 32bit set up in Virtual Box. I want to either upgrade it to Centos 7 64bit or switch it over to the latest version of OpenSUSE.

Beings this is all on a virtual box, my main concern is not just getting an updated Distro. Because I can just install clean Distros all day.

This CentOS 6.6 system I have has a lot of stuff on it which is the reason I need and use it. It's not just personal data in the home directory either.I'm talking Databases and the Developer Environment...

Is it possible to update my OS version and keep everything, or even as crazy as it sounds, change Distros and keep everything?

Last edited by JoseKreif; 10-05-2015 at 07:06 PM.
 
Old 10-05-2015, 08:50 PM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, Fedora & Arch mostly.
Posts: 2,196

Rep: Reputation: 593Reputation: 593Reputation: 593Reputation: 593Reputation: 593Reputation: 593
Just attach a real hard drive to the vbox image, do a backup of all your data, install the upgraded version, then reattach the drive again to restore your data. This would, IMO, be the easiest method.
 
Old 10-05-2015, 09:23 PM   #3
chris319
Member
 
Registered: Jun 2003
Distribution: Linux Mint
Posts: 103

Rep: Reputation: 16
You should be backing up your data periodically, regardless.

Just copy it off to another HD, a thumb drive, a DVD, whatever.
 
Old 10-05-2015, 09:27 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Given its a virtual setup, just setup a new one with the new OS, then try to txfr across.
That way you've got a perfectly working before system that you can a) compare against b) you can continue using until you get the new system finalised.
 
Old 10-05-2015, 09:39 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,677

Rep: Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260
Kind of depends on the data.

If this is a home/simple type setup then maybe just copy over data. If this has a database or many types programs then the data may not be easy to copy.
 
Old 10-05-2015, 10:02 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,677
Blog Entries: 12

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
You could use VirtualBox's "shared folder" feature to back up the files to a folder in the host distribution.

You must have VB Guest Additions installed to your virtual machine to use a shared folder.
 
Old 10-06-2015, 02:19 PM   #7
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 53

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
You could use VirtualBox's "shared folder" feature to back up the files to a folder in the host distribution.

You must have VB Guest Additions installed to your virtual machine to use a shared folder.
I'll try that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to install FreeBSD ( or another linux distro) while keeping data from OLD partiti standards *BSD 17 05-14-2015 03:47 PM
How to install another linux distro while keeping data from OLD partition standards Linux - Distributions 2 05-13-2015 06:19 AM
Problem keeping aspect ratio whilst changing resolution mtb Linux - Software 2 03-20-2015 05:21 PM
website name for data keeping??? deepak_message Linux - Server 1 08-07-2009 11:19 AM
Is it safe to "apt-get upgrade" whilst running gnome? f0rmula Linux - Software 2 12-06-2004 09:27 AM


All times are GMT -5. The time now is 01:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration