Backup Installed Cron Job Entries

To back up your cron jobs, type the following command to create a backup within the /backup/cron directory: crontab -l > /backup/cron/root.bakup If you wish to back up a specific user, use the following replacing userName with the user you want to generate a backup for. crontab -u userName -l […]

Cron Permissions or Access

Cron allows you to assign who can execute or not execute any file. The following files can do it: Cron allow –  /etc/cron.allow Cron deny –  /etc/cron.deny Things to remember: Add the name before the file, whether you want to allow or deny this specific name in using cron. If […]

Crontab Variables

Here are some of the commonly used cron variables SHELL The path of the current user’s shell, such as bash.  PATH The list of directories that will be in the search path for cron. MAIL The mail storage location of the current user. MAILTO It sets who gets emailed with […]

Crontab Syntax and Operators

In your cPanel, you may notice that the existing cron jobs look like this: * * * * * command(s) * (asterisk operator) This means any value or always. If you selected an asterisk in the Hour field, then it means the task will be performed each hour. , (comma […]

Crontab File (Time Intervals)

Cron jobs can be set to run by the minute, hour, day of the week, day of the month, month, or any combination of these. Each entry in a crontab file consists of six fields following this order: minute(s) hour(s) day(s) month(s) weekday(s) command(s) These fields are separated by spaces […]

What is a Crontab Command

The crontab command is used to edit or create a crontab file, list, and remove files, install and deinstall the cron jobs in Vixie Cron. The files in /var/spool/cron/crontabs are not to be edited directly, even though each user owns their crontab file. You can use the crontab command for […]

How to Create Cron on Linux or Unix

Cron Daemon is a computer program or a long-running process that runs commands as a background process instead of being directly controlled by an active user. The daemon regularly checks the file: /etc/crontab and the location of the files or directories: /etc/cron.*/ /var/spool/cron/  /var/spool/cron/crontabs You need to add Crontab commands […]

Cron Job Elements

Most cron jobs include three components: The script that is to be called or executed. The command that executes the script on a recurring basis (typically set in the cPanel). The action or output of the script (which depends on what the script does). Most scripts that require the use of a cron job will give you specific […]

What Is a Cron Job?

cron is a Linux utility that schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks. For example, you can set a cron job to delete temporary files […]

How to Remove an Addon Domain

To delete an addon domain, please do the following: Log in to your cPanel. Click the Addon Domains icon under Domains. At the bottom, under Actions, click Remove. Removing the addon domain only removes the domain from the DNS and server configuration. Your files and databases are not deleted or affected by removing the addon […]