Snippets

How to pause all cronjobs in Linux

The easiest way to pause all cronjobs is to delete the crontab.

Step 1: Take a backup copy:

crontab -l > crontab_backup.txt

Step 2: Remove the crontab

crontab -r

Later, when you'd like to resume all cronjobs again, just restore the backup file

crontab crontab_backup.txt

Twitter
LinkedIn
YouTube
Instagram