Cron job to run a weekly Update & Upgrade

I've been running my own Linux server for a while and since there is no graphical interface, you don't really get a reminder to upgrade the system. Here is a link to a few methods describing how to get this done:AutoWeeklyUpdateHowto

Let me know if this works for you guys.


Update!!

I modified the script a little. I find that after some updates the server needs to be rebooted, so I just added the command to the script. Mine looks like this:

#!/bin/bash
apt-get update; apt-get upgrade -y; apt-get autoclean; shutdown -r now


No Response to "Cron job to run a weekly Update & Upgrade"

Post a Comment