Your IP : 216.73.216.247


Current Path : /etc/cron.d/
Upload File :
Current File : //etc/cron.d/rubrik

# /etc/cron.d/rubrik: crontab fragment for rubrik

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

*/15 * * * *  root  /etc/rubrik/check_and_restart_agents.sh >/dev/null 2>&1
*/15 * * * *  root  logrotate --state /var/lib/logrotate/logrotate.status.rbk.tmp /etc/logrotate.d/rubrik >/dev/null 2>&1

# Script and alert logs are copied to the cluster from the host with every
# REFRESH_HOST_METADATA job, which runs periodically everyday on the cluster.
# As logs file names are unique, so creating the cron job to delete logs
# which are older than 2 days.
*/15 * * * *  root  test -d /var/log/rubrik/script_logs && find /var/log/rubrik/script_logs -name '*.log*' -mtime +2 -type f -exec rm -f {} \; >/dev/null 2>&1
*/15 * * * *  root  test -d /var/log/rubrik/oracle_alert_logs && find /var/log/rubrik/oracle_alert_logs -name '*.log*' -mtime +2 -type f -exec rm -f {} \; >/dev/null 2>&1

# Managed Volume related script logs resides in the directory following
# the structure:
# /var/log/rubrik/managedvolume/<PerManagedVolumeSubDirectory>/<logfiles>
# Following command takes care of the cleanup logic for Managed Volumes.
*/15 * * * *  root  test -d /var/log/rubrik/managedvolume && find /var/log/rubrik/managedvolume -mtime +2 -type f -exec rm -f {} \; >/dev/null 2>&1
*/15 * * * *  root  test -d /var/log/rubrik/managedvolume && find /var/log/rubrik/managedvolume -mtime +2 -type d -empty -delete >/dev/null 2>&1