Submit a ticketCall us

Webinar: Web Help Desk for HR, Facilities and Accounting Departments
This webinar will focus on use cases for HR, Facilities and Accounting.

Having a unified ticketing and asset management system for all the departments in your company can provide end-users with a seamless experience and make things easier for your IT team. Yet, with different business tasks and objectives, many departments don’t fully understand the capabilities of Web Help Desk and how the software can be customized for effective use in their departments.
Register Now.

Home > Success Center > Web Help Desk (WHD) > Remove old logs and backups files from WHD Virtual Appliance

Remove old logs and backups files from WHD Virtual Appliance

Table of contents
Created by Caroline Musindi, last modified by MindTouch on Jun 23, 2016

Views: 246 Votes: 1 Revisions: 4

Overview

This article provides instructions on how to configure the WHD Virtual Appliance (VA) to automatically remove log and backup files older than 14 days .

Environment

  • WHD 12.x and later
  • WHD Virtual Appliance

Steps

  1. Log in via SSH to the Virtual Appliance/Linux box.
  2. Switch to user root with sudo su.
  3. In the command line, type the command crontab -e to open the cron job editor.
  4. Press the A key to enter into edit mode.
  5. Copy and paste the following:
    #***************** Minute (0-60) 
    # #*************** Hour (0-23)
    # # #************* Day of Month (1-31)
    # # # #*********** Month (1-12)
    # # # # #********* Day of Week (0-6)
    # # # # #
    0 3 * * * find /usr/local/webhelpdesk/bin/tomcat/logs -mtime +14 -exec rm {} \;
    0 3 * * * find /usr/local/webhelpdesk/log/ -mtime +14 -exec rm {} \;
    0 3 * * * find /usr/local/webhelpdesk/pgsql9/backups/ -mtime +14 -exec rm {} \;
  6. Press ESC and press SHIFT + ZZ to save the cron job. 
Last modified
04:46, 23 Jun 2016

Tags

Classifications

Public