LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-05-2015, 06:05 PM   #1
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

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 06:06 PM.
 
Old 10-05-2015, 07:50 PM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
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, 08:23 PM   #3
chris319
Member
 
Registered: Jun 2003
Distribution: Linux Mint
Posts: 106

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, 08:27 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 08:39 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
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, 09:02 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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, 01:19 PM   #7
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

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



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 02:47 PM
How to install another linux distro while keeping data from OLD partition standards Linux - Distributions 2 05-13-2015 05:19 AM
Problem keeping aspect ratio whilst changing resolution mtb Linux - Software 2 03-20-2015 04:21 PM
website name for data keeping??? deepak_message Linux - Server 1 08-07-2009 10:19 AM
Is it safe to "apt-get upgrade" whilst running gnome? f0rmula Linux - Software 2 12-06-2004 08:27 AM

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

All times are GMT -5. The time now is 09:37 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