Date: Tue, 7 Jan 2003 12:04:04 -0600 From: Mike Meyer <mwm-dated-1042394645.3e477c@mired.org> To: "Kenzo" <kenzo_chin@hotmail.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Deleted VAR Message-ID: <15899.5780.980725.387591@guru.mired.org> In-Reply-To: <DAV28b3F45qHjDv4IiK00000142@hotmail.com> References: <DAV28b3F45qHjDv4IiK00000142@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In <DAV28b3F45qHjDv4IiK00000142@hotmail.com>, Kenzo <kenzo_chin@hotmail.com> 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. <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15899.5780.980725.387591>