openSuSE 10.2 File and Settings transfer???

Freze

Member
Sep 1, 2006
59
0
0
My friend, a recently converted openSuSEr has just ordered the parts for his new computer. He spent ages getting all the settings the way he wanted, finding all the programs he wants, and configuring Wine, Beryl and KDE. Now that he is getting his new rig, he wants to move all this to it, and not have to do all the stuff manually again.

Is there a program that can do this for openSUSE? Maybe just part of it? In the worst case scenario, would it be possible to move the entire installation onto the new disk?


Thanks in advance!
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
There is no need for a program for this. 'cp' works just fine.


All user preferences and such are stored in your home directory hidden in .filename and .directory name files and directories. The dot (.) before the name makes it 'hidden' and it is skipped over.

By copying the /home/username directory from one system to another your copying all that user's files and all his settings. It's very simple.

Often people will make separate partitions for /home directory, this way they can reinstall the OS without touching their files or settings.

For system-wide configurations, set by the 'root' or admin account these are stored in /etc/ directory generally. Like your X configuration. If you want to save those you'll have to go into that directory and backup what you want to save.

The only issues you have to watch out for is if the UID numbers don't match up between systems or other permission mishap.

UID numbers are how the system keeps track of users. Usernames are just a convience, but the UID numbers are the important things.

If your user in one system is 2000 and your user in the other system is 1000 then when you copy files they may end up having the wrong ownership and will need to be fixed. Otherwise some commands won't perserve the permission and will assign everything to root account if your using root to backup and restore stuff. Both are easily fixed with the
chmod -R username:groupname /home/username
command.


If you type
ls -ald ~/.??*

into a console you can see all the 'hidden' files.


Time to time you will want to clean those up. Sometimes you may want to 'refresh' your setup. Sometimes newer programs aren't compatable with the older program's settings, or you goofed up the settings or whatever. You can easily do this by first backing up all your email, bookmarks, or whatever else you want, and then making a backup directory and moving all those preferences to that backup directory so they are out of the way.

You need to be logged out of the GUI for this. In fact just reboot the system and don't log back into the GUI at all. Just reboot, hit ctrl-alt-F1 to get to a text-only console, log into there and then run this command:

mkdir ~/backup
mv ~/.??* ~/backup

Then hit ctrl-alt-F7 to get back to the GUI and log in and it will be as if you logged in for the first time.

there are lots of little tricks like that you can do.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
For any programs he has installed if your starting off with a fresh system then you'll just have to re-install them. If you don't want to do that then try to do a upgrade.

Remember all the important stuff is in your home directory. Back all that up and any customized text files from /etc/ and you'll be fine.


If you have any more questions or you don't understand something don't hesitate to ask.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Open up the archive manager and save your /home partition to a tar.gz format. Then untar the archive on the root partition. After that you might need to set your permissions (using the chmod command), but that'll pretty much do it. This backs up any user accounts excluding root.

In fact just to make things easier for the future, you know how you made a partition and mounted it to / (root) when you first install? Usually you make a swap partition as well? Well, make a seperate partition and mount that to your /home. What happens is you can reinstall your operating system and completely erase your root partition, but all your settings and files are retained because all you have to do is remount to your /home again because it wasn't touched. Cool, no?

Oh and btw, actual applications are saved to /usr and it would just be a pain to try and back those up. Just add back the guru, packman, and official repositories and reinstall your applications.