Re: Re: Logs management and deletion

Home Page Forums Network Management ZeroShell Logs management and deletion Re: Re: Logs management and deletion

#51793

_dan
Member

@r1vver wrote:

But how i can make single (non automatic) deletion of all logs? Can it (deletion) be done manually (from cli)?

The answer is yes.
By default ZS keep current logs on

/Database/LOG/2011/May/30

Where

  • Database – the mount point of _DB.001(user database)
  • LOG – log directory
  • 2011 -current year
  • May – current month
  • 30 – current day

A direct command to remove the logs for current day is

rm -R /Database/LOG/2011/May/30

Before you consider deleting the current logs you should backup(compressed) your logs.

cd /Database/LOG/2011/May/
tar cjf May30.tar.bz2 30

Just few basic examples, from here you can start learning about *nix basic commands and shell scripting for other options.

Success,