How to Create a Cron Task in Ubuntu

7 Views
Published
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
Category
Liquid Web
Tags
liquidweb, datacenter, web
Be the first to comment