Scheduling Restarts Using Crontab

Updated

For UNIX clients, you can schedule service restarts using a Crontab file.

Note

If services go down during a process, the commvault start command will not restart services unless the command is included in the crontab file.

Procedure

Use the following steps to create the Crontab file:

  1. Log on to a client computer as root.

  2. At the command prompt, type the command to edit the crontab file:

    crontab -e
        
    
  3. At the command prompt, type the command to display the crontab file:

    crontab -l
        
    
  4. Use the following command to schedule a restart - the following example will start the service at 7:00 am on the first day of each month.

    071**/<software installation path>/Base/commvault start
        
    

    Where 071** indicates the following:

    0 = Minute (0-59)

    7 = Hour (0-23)

    1 = Day of Month (1-31)

    * = Month (1-12 or Jan-Dec)

    * = Day of Week (0-6 or Sun-Sat)

  5. Type :wq to save the changes made.

  6. Alternatively, you can also open the crontab file from the client computer, set the restart time and then save the file.

Was this page helpful?