[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] How to delete abandoned data
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] How to delete abandoned data
- From: Rolf Schrittenlocher <schritte (at) hebis.uni-frankfurt.de>
- Date: Fri, 11 Sep 2009 13:47:16 +0200
- References: <OFC1CCD0A5.EDFFD539-ONC125762E.00339C6A-C125762E.00344E80 (at) dcx.dcx>
- User-agent: Thunderbird 2.0.0.23 (Windows/20090812)
Hi,
on UNIX (solaris, others may work)
try for testing
find . -name S\* -exec ls -l {} \;
for real delete
find . -name S\* -exec rm -f {} \;
kind regards
Rolf
Hi
I just saw that in all of my Hobbit's directories all datafiles
(histlogs, rrd files, etc) are doubled. One with capitals and one without:
...
drwxr-xr-x 2 hobbit nobody 1024 Aug 7 11:05 s068v004
drwxr-xr-x 2 hobbit nobody 1024 Aug 6 15:39 S068V004
drwxr-xr-x 2 hobbit nobody 1024 Aug 7 11:05 s068v010
drwxr-xr-x 2 hobbit nobody 1024 Aug 6 13:03 S068V010
drwxr-xr-x 2 hobbit nobody 1024 Aug 7 11:05 s068v011
drwxr-xr-x 2 hobbit nobody 1024 Aug 6 13:03 S068V011
drwxr-xr-x 2 hobbit nobody 1024 Aug 7 11:05 s068v012
drwxr-xr-x 2 hobbit nobody 1024 Aug 6 13:03 S068V012
drwxr-xr-x 2 hobbit nobody 1024 Aug 7 11:05 s068v013
drwxr-xr-x 2 hobbit nobody 1024 Aug 6 13:03 S068V013
drwxr-xr-x 2 hobbit nobody 1024 Aug 7 11:05 s68tts06
drwxr-xr-x 2 hobbit nobody 1024 Aug 6 13:03 S68TTS06
...
It seems that somebody "cleaned" the bb-hosts file on Aug 7. So how
can I delete all that capital files. Because there are several
hundreds of hosts it is difficult to do by hand. If I simply delete
all files I loose all the history info. It's bad enough that I loose
the history before Aug 7, but don't know a way to merge the files.
Maybe I should do a find to all files older than Aug 7?
Any ideas?
Thorsten Erdmann
If you are not the intended addressee, please inform us immediately
that you have received this e-mail in error, and delete it. We thank
you for your cooperation.
--
Mit freundlichen Gruessen
Rolf Schrittenlocher
HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (49) 69 - 798 28908 Fax: (49) 69 798 28817
LBS: lbs-f (at) mlist.uni-frankfurt.de
Persoenlich: schritte (at) hebis.uni-frankfurt.de