Black Friday: 40% off for life · BLACKFRIDAY40Claim →
crabsmith Get started
Browse documentation
← All documentation

Schedules

On this page

Run recurring commands on your server on a cron schedule—great for Laravel's scheduler, database backups, or cleanup tasks. Crabsmith only manages the schedules you create here and never touches your existing cron jobs.

Create a schedule

New schedule form with cron expression, command, and working directory

  1. Open your server's Schedules tab (or a site's Processes tab) and click New schedule.
  2. Enter a lowercase Name (for example scheduler or cleanup).
  3. Set the five-field Cron expression (for example * * * * * to run every minute, or 0 3 * * * for 3:00 AM daily).
  4. Enter the one-line Command and an existing Working directory (defaults to /home/crab, or the site's folder when created from a site).
  5. Leave Enabled checked and click Create schedule.

Good to know:

  • Timezone: schedules run in the server's timezone (usually UTC), not your browser's local timezone.
  • User & environment: commands run as crab (never root). Your app's .env file isn't loaded automatically unless your command loads it.
  • Automatic cron setup: the first time you enable a schedule, Crabsmith installs and starts Ubuntu's cron service if it isn't already installed.

Warning

Don't put passwords or API secrets directly in the command—store them in your app's .env file instead.

Enable, disable, and delete

  • Disable: stops future scheduled runs. Any run already in progress finishes normally.
  • Edit: update the schedule, command, or directory and click Save schedule.
  • Delete: removes only Crabsmith's schedule—your working directory, files, and other cron jobs stay untouched.

Schedules run directly on your server, so they keep running even when you aren't logged into Crabsmith.

View logs

Click Logs on any schedule to see its recent output. If the log is empty, the command either hasn't run yet or didn't print anything.

When something fails

  • Check the operation output if saving failed—the most common causes are a typo in the cron expression or a working directory that doesn't exist.
  • If a command runs on schedule but fails internally, open Logs to see the error output.
  • For server connection issues, see Troubleshooting.