Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 1998 22:55:25 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Bill Hamilton <billh@finsco.com>
Cc:        freebsd questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: /var wiped
Message-ID:  <19981203225525.A2602@scientia.demon.co.uk>
In-Reply-To: <366700AC.3113D67C@finsco.com>
References:  <366700AC.3113D67C@finsco.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bill Hamilton wrote:

> What directories would I normally have on /var?
> What files might I have lost that I don't know about yet?

Check BSD.var.dist, which may be under /etc/mtree:

#	$Id: BSD.var.dist,v 1.37 1998/09/19 18:50:27 obrien Exp $
#

/set type=dir uname=root gname=wheel mode=0755
.
    account
    ..
/set type=dir uname=daemon gname=wheel mode=0755
    at              uname=root
        jobs
        ..
        spool
        ..
    ..
    backups         uname=root mode=0750
    ..
    crash           uname=root mode=0750
    ..
/set type=dir uname=root gname=wheel mode=0700
    cron            mode=0750
        tabs
        ..
    ..
    db              uname=root gname=wheel mode=0755
    ..
/set type=dir uname=root gname=wheel mode=0755
    games                gname=games mode=0775
	hackdir          gname=games mode=0770
	    save         gname=games mode=0770
	    ..
        ..
        larn             gname=games mode=0775
        ..
        phantasia        gname=games mode=0775
        ..
    ..
    log
    ..
    mail            uname=root gname=mail mode=0775
    ..
    msgs            uname=daemon
    ..
    preserve
    ..
    run
    ..
    rwho            uname=root gname=daemon mode=0775
    ..
/set type=dir uname=uucp gname=daemon mode=0755
    spool           uname=root gname=wheel
        lock            gname=dialer mode=0775
        ..
        lpd             uname=root
        ..
        mqueue          uname=root
        ..
	opielocks       uname=root mode=0700
	..
        output          uname=root
	    lpd		    uname=root gname=daemon
	    ..
        ..
/set type=dir uname=uucp gname=uucp mode=0775
        uucp
            .Preserve
            ..
            .Sequence
            ..
            .Status
            ..
            .Temp
            ..
            .Xqtdir
            ..
        ..
        uucppublic      mode=0777
        ..
    ..
/set type=dir uname=root gname=wheel mode=01777
    tmp
        vi.recover
        ..
    ..
    yp              mode=0755
    ..
..

If you save everything from the $Id$ to the .. above into a file,
you can use mtree to create all the directories which should be there.
(easier if you do have the file under /etc/mtree.) read the manpage for
mtree for details on how to do that.

Also, if you run INN, you may have lost anything you had under
/var/news, or anything.

And don't forget to make regular backups.

-- 
Ben Smithurst
ben@scientia.demon.co.uk

send a blank message to ben+pgp@scientia.demon.co.uk for PGP key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981203225525.A2602>