LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-28-2009, 06:43 PM   #1
cubdukat
Member
 
Registered: Mar 2006
Posts: 48

Rep: Reputation: 15
Question about Backup: Can I Use the /home directory from one distro in another?


I installed the beta of Ubuntu 9.10 Karmic, and I am now stuck with a barely usable system, so I am going to remove it. I've already backed up the home directory, and what I was wondering is this:

If I were to install a completely different distro, like, say, OpenSUSE, would I be able to copy back my home directory without problems and have things still work, or would I have to reinstall Karmic? I had always believed that Linux distros were more or less the same except for cosmetic differences, but this seems like it'd be a different case somehow..
 
Old 10-28-2009, 06:55 PM   #2
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 103

Rep: Reputation: 25
I've tried this in the past and my usual result was that I would have a working system with a lot of weird quirks. Some software may have incompatible config files sitting in your home folder.

On a side note, you can try updating your beta Karmic again, and may get a more stable desktop. I've been updating pretty much every day for the past month, and have cycled in and out of unusability

The easiest way is just issue the following command:

Code:
sudo apt-get update && sudo apt-get dist-upgrade -y
 
Old 10-29-2009, 03:00 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,531
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by cubdukat View Post
If I were to install a completely different distro, like, say, OpenSUSE, would I be able to copy back my home directory without problems ...
Yes and no; some things would and some things would not. That means you can't do it and be sure everything would work.

It may be that during the change-over, you want to dual-boot until you are confident that the new distro is OK for you -- and that means having your data files available under both distros.

One solution is to separate the "distro-specific" from the "not distro-specific". I have /home/c as part of the / file system, containing all the distro-specific files and /home/c/d as a separate file system containing all the "not distro-specific" files and mounted under both distros
Code:
root:/etc# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root             5.7G  4.6G  775M  86% /
/dev/mapper/CW8-home   50G   26G   22G  54% /home/c/d
Configuration directories for apps that are normally under /home/c were moved to /home/c/d and symlinks to them created in /home/c
Code:
c:~$ ls -Al | grep '^l'
lrwxrwxrwx  1 c users    13 Oct  6 01:17 .VirtualBox -> d/.VirtualBox
lrwxrwxrwx  1 c users    10 Oct  6 01:17 .azureus -> d/.azureus
lrwxrwxrwx  1 c users    14 Oct  6 01:18 .googleearth -> d/.googleearth
lrwxrwxrwx  1 c users    10 Oct  6 01:18 .keepass -> d/.keepass
lrwxrwxrwx  1 c users    18 Oct  6 01:19 .openoffice.org -> d/.openoffice.org/
Nothing broke!
 
Old 10-29-2009, 03:47 AM   #4
AngTheo789
Member
 
Registered: Sep 2009
Posts: 110

Rep: Reputation: 24
I would suggest that you keep separate backups for your own files in your home directory, and a separate backup of all the invisible files and directories within your home folder. For some applications it will be easier to use the installed configuration files, in other cases (like a mail application, Thunderbird for example) you will need to replace the application data with the data from your backup.
 
  


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
restoring ONLY the home directory from a complete tar backup irishbitte Linux - Server 5 11-11-2008 08:24 AM
Home Directory Question carlosinfl Debian 1 10-04-2006 01:42 PM
Home directory question BobL Linux - Software 5 01-04-2005 04:28 PM
/home directory structure question Dswissmiss Linux - General 2 09-29-2004 11:54 AM
How to syncronize/backup my home directory? blixel Linux - General 3 10-20-2003 10:21 PM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration