Date: Tue, 26 Jul 2005 10:51:24 +0800 From: Xu Qiang <Qiang.Xu@fujixerox.com> To: Glenn Sieb <ges+lists@wingfoot.org>, freebsd-questions@freebsd.org Cc: Qiang.Xu@fujixerox.com Subject: RE: undelete in FreeBSD? Message-ID: <20050726024807.E825D1D936@imss.sgp.fujixerox.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050726024807.E825D1D936>