Create and manage per-user cron schedules to run scripts, backups, and maintenance automatically. 01.02.2026 | reading time: 2 min Want a script to run while you sleep? User-defined cron jobs let a regular account schedule commands simply and reliably; this guide shows how to create a per-user crontab, test it, and avoid common pitfalls. Create a daily backup job Create a simple backup script, make it executable, and schedule it in your user crontab with a few commands: ```bash $ cat > /usr/local/bin/daily-backup.sh <<'EOF' #!/bin/sh mkdir -p /var/backups/mydata tar -czf /var/backups/mydata-$(date +%F).tgz /home/user/data EOF $ chmod +x /usr/local/bin/daily-backup.sh $ crontab -e # add the line below in the editor 30 2 * * * /usr/local/bin/daily-backup.sh >/dev/null 2>&1 ``` Check the installed crontab with `crontab -l` which should print the scheduled line. Environment and formatting gotchas Crontab lines use five time fields then the command, and the job runs with a minimal shell environment so always set full paths or PATH inside the script; remember `MAILTO` to receive output, percent signs are special in the command field, and use `@daily` or `@reboot` for shortcuts when appropriate. Where user jobs run and how they log User crontabs are per-account (edited with `crontab -e`) and stored by cron implementation in system directories; system logs or `/var/log/cron` and syslog show job execution, and scheduling for root or other users requires root privileges with `crontab -u` or editing `/etc/cron.d`. Alternatives and when to pick them If machines are not always on prefer anacron, and for complex dependency or finer control prefer systemd timers; use `at` for one-off delayed jobs and logrotate for scheduled log maintenance instead of manual cron scripts. Next steps and study path Start automating a few routine tasks, check logs to confirm behavior, and widen your toolkit toward robust scheduling solutions; consider deepening your Linux skills and pursuing certifications like CompTIA Linux+ or LPIC-1 with intensive exam preparation at bitsandbytes.academy to turn practice into professional proof. Join Bits & Bytes Academy First class LINUX exam preparation. scripting utilities backup processes