Re: How to backup the users

2008-01-28 Thread Jerry McAllister
On Sun, Jan 27, 2008 at 05:59:18PM +0200, Ivan Rambius Ivanov wrote:

> Hello,
> 
> I am running a small FreeBSD server and I have a a couple of users
> ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
> it, but I want to preserve the users' credentials. Can you please
> advise me how to back them up?

Just use dump(8) to back up the filesystem with the user home directories
and also back up where-ever you have the /etc/... file tree.   It is
all in /etc/passwd, /etc/group and /etc/master.passwd, plus wherever
you put home directories.

jerry

> 
> Thank you in advance.
> 
> Regards
> Rambius
> 
> -- 
> Tangra Mega Rock: http://www.radiotangra.com
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to backup the users

2008-01-27 Thread Bill Moran
"Alphons \"Fonz\" van Werven" <[EMAIL PROTECTED]> wrote:
>
> Ivan "Rambius" Ivanov wrote:
> 
> >  I was only unsure how to proceed with the users backup.
> 
> If users are the only thing you wish to back up:
> 
> /home
> /etc/group
> /etc/master.passwd

He's running an ssh server, so he's going to want to back up the host
keys in /etc/ssh

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to backup the users

2008-01-27 Thread Wojciech Puchar


You might as well save the whole /etc, you will probably need other conf 
files and surely you would like to have /etc/passwd and /etc/group


not passwd - is generated from master.passwd

but group - yes, sorry i missed it.

In fact, I would also backup the whole /usr/local/etc to get all the 
configuration settings for my services and so on.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to backup the users

2008-01-27 Thread Alphons "Fonz" van Werven

Ivan "Rambius" Ivanov wrote:


 I was only unsure how to proceed with the users backup.


If users are the only thing you wish to back up:

/home
/etc/group
/etc/master.passwd

You can backup system files (/etc, /usr/local/etc, /var) if you want but
that's another topic.

Some hints:

1. Check if there are users who have their home-dir outside /home...
2. Check /tmp to see if users have files there (they shouldn't count on
   those being preserved, that's not what /tmp is for, but you might want
   to offer a little bit of extra service by doing this anyway)
3. There might be slight differences between the current /etc/group and
   /etc/master.passwd and the ones on the new system. So, instead of
   blindly copying the old ones onto the new system, I suggest you add the
   relevant entries in the old files to the new files by hand (or script).
4. If you copy the encrypted passwords, then users don't need to set a new
   password after you've reinstalled the system.
5. Keep track of UIDs/GIDs: you might need to do some chowning to give
   everybody their files back if their (numerical) UIDs/GIDs have changed.
6. If you don't need to repartition your disks, it might be an option to
   just leave /home alone during the reinstall (set the newfs flag to N).
   That leaves /home untouched and you can just mount it afterwards.

Hth,

Alphons

--
VISTA - Viruses Intruders Spyware Trojans Adware

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to backup the users

2008-01-27 Thread Ivan "Rambius" Ivanov
On Jan 27, 2008 6:58 PM, Bill Moran <[EMAIL PROTECTED]> wrote:
> Manolis Kiagias <[EMAIL PROTECTED]> wrote:
> >
> > Wojciech Puchar wrote:
> > >> Hello,
> > >>
> > >> I am running a small FreeBSD server and I have a a couple of users
> > >> ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
> > >> it, but I want to preserve the users' credentials. Can you please
> > >> advise me how to back them up?
> > >
> > > /home/*
> > > /etc/master.passwd
> > > /var/cron/tabs/*
> > > /var/mail/*
> > >
> > > possibly other files.
> > >
> > >
> > > but format+reinstall is when you have windows, with unix there is no
> > > need to.
> > >
> > >
> > You might as well save the whole /etc, you will probably need other conf
> > files and surely you would like to have /etc/passwd and /etc/group
> > In fact, I would also backup the whole /usr/local/etc to get all the
> > configuration settings for my services and so on.
>
> A good, general rule of thumb for backing up a system is:
> /etc
> /usr/local/etc
> /home
> /var
>
> /var is the wildcard here ... /etc and /usr/local/etc are generally very
> small.  /home can be huge, but if it is, it's probably because there is
> a lot of important data there.
>
> But /var can be large with a lot of stuff that you may not want to back
> up.  Do you need /var/log, for example?
>
> Frankly, if you have enough space to back up, I recommend you back up the
> entire system and restore selectively.  Do you have, for example, a
> database in /usr/local/pgsql?  If you're asking this question, you're
> probably better off safe than sorry.
I do not have any databases servers on the machine. In fact, it hosts
only a cvs repository and a web server and I have already backed them
up. I was only unsure how to proceed with the users backup.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to backup the users

2008-01-27 Thread Bill Moran
Manolis Kiagias <[EMAIL PROTECTED]> wrote:
> 
> Wojciech Puchar wrote:
> >> Hello,
> >>
> >> I am running a small FreeBSD server and I have a a couple of users
> >> ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
> >> it, but I want to preserve the users' credentials. Can you please
> >> advise me how to back them up?
> >
> > /home/*
> > /etc/master.passwd
> > /var/cron/tabs/*
> > /var/mail/*
> >
> > possibly other files.
> >
> >
> > but format+reinstall is when you have windows, with unix there is no 
> > need to.
> >
> >
> You might as well save the whole /etc, you will probably need other conf 
> files and surely you would like to have /etc/passwd and /etc/group
> In fact, I would also backup the whole /usr/local/etc to get all the 
> configuration settings for my services and so on.

A good, general rule of thumb for backing up a system is:
/etc
/usr/local/etc
/home
/var

/var is the wildcard here ... /etc and /usr/local/etc are generally very
small.  /home can be huge, but if it is, it's probably because there is
a lot of important data there.

But /var can be large with a lot of stuff that you may not want to back
up.  Do you need /var/log, for example?

Frankly, if you have enough space to back up, I recommend you back up the
entire system and restore selectively.  Do you have, for example, a
database in /usr/local/pgsql?  If you're asking this question, you're
probably better off safe than sorry.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to backup the users

2008-01-27 Thread Manolis Kiagias



Wojciech Puchar wrote:

Hello,

I am running a small FreeBSD server and I have a a couple of users
ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
it, but I want to preserve the users' credentials. Can you please
advise me how to back them up?


/home/*
/etc/master.passwd
/var/cron/tabs/*
/var/mail/*

possibly other files.


but format+reinstall is when you have windows, with unix there is no 
need to.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"



You might as well save the whole /etc, you will probably need other conf 
files and surely you would like to have /etc/passwd and /etc/group
In fact, I would also backup the whole /usr/local/etc to get all the 
configuration settings for my services and so on.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to backup the users

2008-01-27 Thread Wojciech Puchar

Hello,

I am running a small FreeBSD server and I have a a couple of users
ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
it, but I want to preserve the users' credentials. Can you please
advise me how to back them up?


/home/*
/etc/master.passwd
/var/cron/tabs/*
/var/mail/*

possibly other files.


but format+reinstall is when you have windows, with unix there is no need 
to.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to backup the users

2008-01-27 Thread Ivan "Rambius" Ivanov
Hello,

I am running a small FreeBSD server and I have a a couple of users
ssh'ing to it. I want to wipe the server out and reinstall FreeBSD on
it, but I want to preserve the users' credentials. Can you please
advise me how to back them up?

Thank you in advance.

Regards
Rambius

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"