1. Home
  2. Knowledge Base
  3. Problems (EN)
  4. How do we clean the files in /var/spool/pandora/data_in?

How do we clean the files in /var/spool/pandora/data_in?

With time and use, the /var/spool/pandora/data_in directory can become filled with thousands, if not millions, of files. This can generate problems, which are fixed by cleaning up the directory.

Two ways to clean up the directory:

  1. If the files contained in /var/spool/pandora/data_in contain XML with data that we don’t want to lose, the way to proceed is to move them to a temporary directory and to pass them little by little to /var/spool/pandora/data_in so that the server processes them.
mv /var/spool/pandora/data_in/*data /tmp/xml
ls -rt /tmp/xml | grep data | head -20 | xargs -i% mv /tmp/xml/% /var/spool/pandora/data_in

With the last command, each time it is executed, the XML are passed step by step, 20 each step, to /var/spoolpandora/data_in, it should be noted that the server is processing them to avoid gluing them again

  1. If the CML glued in /var/spool/pandora/data_in are not relevant and can be deleted, the solution is: Execute the following command (Perl inline):
perl -e 'for(<*>){((stat)[9]<(unlink))}'

The command will take some time to clean the directory, depending on the amount of files it contains.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support

Recent Discussions