Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2003 18:57:54 +0100 (CET)
From:      Andrew Prewett <andrew@kronos.HomeUnix.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Deleted VAR
Message-ID:  <20030107184928.Y51290@slave.east.ath.cx>
In-Reply-To: <DAV28b3F45qHjDv4IiK00000142@hotmail.com>
References:  <DAV28b3F45qHjDv4IiK00000142@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Today Kenzo wrote:

> Help, I accidently deleted everything in the /var dir. ( fat fingered ).
> Is there a way to retrive it? or do i have to reinstall.
> I'm now getting alot of error message since it's also a mail server. well
> not anymore.

 You can restore the directory structure -- at least -- with mtree:
`mtree -deU -f /etc/mtree/BSD.var.dist -p /var', to make sendmail(?) happy.

 Don't forget to create the logfiles for syslogd.

	-andrew


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?20030107184928.Y51290>