From owner-freebsd-questions@FreeBSD.ORG Tue Jul 26 02:48:37 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0875816A41F for ; Tue, 26 Jul 2005 02:48:37 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from mx21.fujixerox.co.jp (mx21.fujixerox.co.jp [192.26.96.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7783743D45 for ; Tue, 26 Jul 2005 02:48:36 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from isvw21.fujixerox.co.jp ([129.249.27.141]) by mx21.fujixerox.co.jp with ESMTP id j6Q2mYBX008712; Tue, 26 Jul 2005 11:48:34 +0900 (JST) Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1]) by isvw21.fujixerox.co.jp with ESMTP id j6Q2mYO4000495; Tue, 26 Jul 2005 11:48:34 +0900 (JST) Received: from ms1.fujixerox.co.jp (ms1 [129.249.27.192]) by ms20.fujixerox.co.jp with ESMTP id j6Q2mXe5011010; Tue, 26 Jul 2005 11:48:33 +0900 (JST) Received: from sgpaphq-smtp01.fujixerox.com ([13.198.8.73]) by ms1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j6Q2mUm27096; Tue, 26 Jul 2005 11:48:30 +0900 (JST) Received: from mailhost.sgp.fujixerox.com by sgpaphq-smtp01.fujixerox.com with ESMTP id 95117661122346097; Tue, 26 Jul 2005 10:48:17 +0800 Received: from localhost (localhost [127.0.0.1]) by localhost.sgp.fujixerox.com (Postfix) with SMTP id 8F8931D93C; Tue, 26 Jul 2005 10:48:13 +0800 (SGT) Received: from sess.xssc.sgp.xerox.com (unknown [13.198.33.122]) by imss.sgp.fujixerox.com (Postfix) with ESMTP id E825D1D936; Tue, 26 Jul 2005 10:48:07 +0800 (SGT) From: Xu Qiang To: Glenn Sieb , freebsd-questions@freebsd.org Date: Tue, 26 Jul 2005 10:51:24 +0800 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 60130 (9.0.2711) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20050726024807.E825D1D936@imss.sgp.fujixerox.com> Cc: Qiang.Xu@fujixerox.com Subject: RE: undelete in FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 02:48:37 -0000 Glenn Sieb wrote: > Nelis Lamprecht said the following on 7/21/2005 5:13 AM: >> There isn't a way to restore unless you have a backup. However, most >> of the binary files in /usr/local/bin are from packages/ports you >> have installed on your system. So you may be able to get away with >> using portupgrade(/usr/ports/sysutils/portupgrade) to re-install >> those packages and therefore "restoring" some if not all of >> /usr/local/bin. Do a portupgrade -f -a which forces portupgrade to >> re-install all packages/ports you have currently installed. > Nelis, > = > First I think he might have to go re-install portupgrade. > = > Xu--as root, perform the following steps: > = > cd /tmp > tar cvf etc.tar /usr/local/etc/ > cd /usr/ports/sysutils/portupgrade > make install && make clean > portupgrade -farRx bsdpan- > = > This will force reinstallation of all your ports. This will take > *forever*. = > = > And, just in case, we've tarred up your /usr/local/etc directory so > you have a backup in /tmp! Thanks for all who helped. = I am just wondering the only shortcoming of Unix clone, such as FreeBSD, in= contrast to M$ Windows, is the lack of a cyclin bin, from which you can re= store anything you have mis-deleted before. = Or, am I mis-informed on this issue? Regards, Xu Qiang