From owner-freebsd-questions Tue Jan 7 10: 7: 8 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1CB637B489 for ; Tue, 7 Jan 2003 10:07:06 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 9240244403 for ; Tue, 7 Jan 2003 10:04:25 -0800 (PST) (envelope-from mwm-dated-1042394645.3e477c@mired.org) Received: (qmail 97511 invoked from network); 7 Jan 2003 18:04:05 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 7 Jan 2003 18:04:05 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15899.5780.980725.387591@guru.mired.org> Date: Tue, 7 Jan 2003 12:04:04 -0600 To: "Kenzo" Cc: Subject: Re: Deleted VAR In-Reply-To: References: X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.67 (Whirlaway) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In , Kenzo typed: > 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. The stuff in /var tends to be dynamically created - mailboxes, log files, installed package information, and other such things. You can't reinstall that. This is probably the single most important directory to back up. If you don't have backups, all you can do is recreate the directory structure and some log files. You can recreate the directory tree with: /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var" Check /etc/newsyslog.conf for a list of files in /var/log to touch, what user:group should own them, and what mode they should be. Rebooting would probably be advised as well, just to make sure all the daemons are logging to their files and not to an inode that no longer has a link on disk. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message