Extra Files on Linux Server

Paul Konstanski
Paul Konstanski used Ask the Experts™
on
I have a number of directories/files on my Linux Server that seem to be not needed.  

Can you tell me what these files are for and if they can be erased?

  100M: /opt/drweb/bases/bases.tar.gz
  100M: /old/opt/drweb/bases/bases.tar.gz
  100M: /old/old/opt/drweb/bases/bases.tar.gz
  100M: /old/old/old/opt/drweb/bases/bases.tar.gz
  100M: /old/old/old/old/opt/drweb/bases/bases.tar.gz
  102M: /old/old/old/usr/lib/locale/locale-archive
  102M: /old/old/old/old/usr/lib/locale/locale-archive
  102M: /old/usr/lib/locale/locale-archive
  102M: /old/old/usr/lib/locale/locale-archive

It seems to be that instead of replacing files in an "old" directory, it creates a new directory underneath the old one.  (e.g. /old/old/old).

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Distinguished Expert 2018
Commented:
looks liek that way.

/old is not a standard linux directory so for me it seems safe to remove...
i have no idea what /opt/drweb houses though....

And if the structure is getting created again you need to check scripts that "attempt" to create a backup or safe keeping  of some data.
David FavorFractional CTO
Distinguished Expert 2018
Commented:
As noci said...

/old - not part of any Linux Distro

/opt/drweb - part of Dr. Web scanner

Whatever code is generating the nested directories is likely due to slightly broken syntax in a cp or rsync command.

If you remove these directories + they reappear, look at the crontab entries for the user owning these files.
Paul KonstanskiProject Specialist

Author

Commented:
Thank you for the excellent advice. Very helpful.
You can compare the files to verify if they're actually duplicates.
diff opt/drweb/bases/bases.tar.gz /old/old/old/old/opt/drweb/bases/bases.tar.gz

It's possible that they're different versions too.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial