Import and export cron jobs

You can view your existing cron jobs with the command:

crontab -l

You can export it to a text file by piping the output:

crontab -l > cron

You can import your cron jobs from a file (overwriting your existing cronjobs):

crontab cron

where cron is the name of the text file.

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.