LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-07-2008, 04:30 AM   #1
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Rep: Reputation: 15
backup and restore user home dir


i have centos5 box with 75 user iam going reinstall the os i dont like to recreate all user what are files i have backup
 
Old 07-07-2008, 04:44 AM   #2
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
backup the following files and the /home directory

/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow

thanks

shahz
 
Old 07-07-2008, 07:47 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Or if you plan on keeping the same partition layout, you can simply not overwrite the /home partition to keep it intact. You'll still want to backup the passwd, shadow and group files in /etc as pointed out. You'll also want to make a backup of /home just in case anything goes wrong, but if you want to take that approach, it'll save you the time in actually placing the /home directory contents back on the server, after the reinstall, and if untouched, everything should be there.
 
Old 07-08-2008, 12:00 AM   #4
ssilayaraja
Member
 
Registered: Aug 2003
Location: chennai
Posts: 115

Original Poster
Rep: Reputation: 15
thank you for your reply
 
Old 07-08-2008, 12:33 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Save your /var/log/* if you care about your logs.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup My Home Dir Using Tar? carlosinfl Linux - General 2 03-19-2008 01:30 PM
Backup my home dir ernesto_cgf Linux - General 5 03-27-2007 02:41 AM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
lock new user into home dir eyewittness Linux - Security 4 06-19-2005 12:33 PM
Help - Deleted home dir, can i restore? phlyersphan Linux - Newbie 7 07-05-2004 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:17 PM.

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