How to Create a Cron Task in Ubuntu

January 22, 2020 Liquid Web

In this video, we describe how to create a cron task in Ubuntu. 

Commands used:
sudo apt-get update
sudo apt-get upgrade
dpkg -l cron
sudo apt-get install cron
systemctl status cron
sudo systemctl start cron
crontab -e
0 4 * * * /bin/sh /scripts/backup-script.sh
Escape, colon, w, q (:wq)
/scripts/backup-script.sh
chmod +x /scripts/backup-script.sh

The related article for this article can be found here: 
https://www.liquidweb.com/kb/create-a-cron-task-in-ubuntu-16-04/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ and to learn more about our dedicated server offerings, visit: *https://www.liquidweb.com/products/dedicated/


Video by: Alex Gorzen

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our <a href="https://www.liquidweb.com/blog">newsletter</a> to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Install Python on CentOS 8
How to Install Python on CentOS 8

In this video, we describe how to Install Python on CentOS 8. We show you how to install Python 2 and Pytho...

Next Video
How to Install TensorFlow on CentOS
How to Install TensorFlow on CentOS

In this video, we demonstrate to you how to do install TensorFlow on CentOS via the Python package manager ...

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now