LinuxQuestions.org
Review your favorite Linux distribution.
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 12-03-2009, 07:26 PM   #1
ddrohan
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
best way to backup and restore /home directory and reinstall kubuntu


Hey everyone,

So I've finally given up on saving my kubuntu install that wont boot. I've searched, and looked, but couldn't find a thing.

My delema now is to make sure that I:

a) get all of the user data safely packed up onto my external USB drive. I believe it's all in the home directory. I'm not sure about getting hidden files though...

b) get the new install to go smoothly, and not mess up grub or the parralell XP install on the same hard drive.

c) get the user data back on the computer and recreate the user structure. Permissions were messed up already, so setting those up again is not an issue.

So, I've been poking around, and this is how I think things should go:

a) tar cvpjf backup.tar.bz2 /home to get my home directory backed up. Not exactly sure how to get from here to my external hd, but I'm sure I can figure it out

b) just run a live cd of kubuntu, delete the old partitions, and reinstall over them?

c) unzip the tar into by /home directory.

That's all I've been able to find so far. How do I set up the users? Will they show up as soon as I untar? Will the resinstall play nice with my windows install? Will I get all the hidden files too? Is there anything I'm missing?

Thanks!
 
Old 12-03-2009, 07:30 PM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Do want to format whole system ? or just reinstalling Kubuntu ?

if it is reinstallation, if /home is a special drive then no need of back up.
other wise you need to back up.
use "cpio" to backup.
 
Old 12-03-2009, 07:33 PM   #3
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
to back up use this command
Code:
ls . | cpio -o > backup
to restore use this command
Code:
cpio -i < backup
 
  


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
backup and restore user home dir ssilayaraja Linux - General 4 07-08-2008 12:33 AM
(Kubuntu newbie questions) Running apps in your home directory PsychosisNode Ubuntu 3 11-12-2007 10:43 PM
reinstall and save home directory IraB Debian 4 03-22-2006 08:50 AM
tar backup & restore of current directory wishbone42 Linux - General 3 02-09-2004 02:30 AM
How to syncronize/backup my home directory? blixel Linux - General 3 10-20-2003 10:21 PM

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

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