Cron Jobs: Automating Your Server Print

  • 0

Cron Jobs: Automating Your Server

A Cron Job is a scheduled task that the server runs at specific intervals. It is the "automated assistant" of your hosting account.

Common Use Cases:

  • Backups: Automatically zipping your public_html folder every Sunday at 2:00 AM.

  • Database Maintenance: Running an optimization script once a month.

  • Email Queues: Sending out batch newsletters in small increments to avoid spam filters.

Setting a Cron Job:

  1. Go to Advanced > Cron Jobs.

  2. Select a common setting (e.g., "Once Per Day").

  3. Enter the command to run (e.g., php /home/username/public_html/script.php).

  4. Note: To avoid server strain, we recommend not running cron jobs more frequently than every 15 minutes on shared hosting plans.


The Technical Toolbox

Tool Best For... Expertise Level
WP-CLI Bulk WordPress Management Intermediate
phpMyAdmin Visual Database Editing Beginner-Intermediate
Terminal / SSH Advanced File & App Control Advanced
Git Version Control Tracking code changes & Deployment Advanced

Was this answer helpful?

« Back