Skip to content

Automated system only updates

Arjan edited this page Apr 16, 2015 · 3 revisions

You can configure your /etc/crontab to run automated system-only updates. To run updates every Sunday, add:

# Automatic system-only updates every Sunday
17 5    * * 7   root    cd;wget -q -U iCab http://files.aegir.cc/BOA.sh.txt;bash BOA.sh.txt
18 5    * * 7   root    /opt/local/bin/barracuda up-stable system

Barracuda will send the update report to the e-mail address defined as _MY_EMAIL in your /root/.barracuda.cnf file.

You can configure it to run when you wish, of course, like every Monday, every day, etc. Try to keep it running either before midnight or after 5 AM, to avoid collisions with other cron tasks.

There is now also a barracuda configuration option for this, which manages the crontab settings for you: define the _AUTO_UP_WEEKLY, _AUTO_UP_MONTH, and _AUTO_UP_DAY variables as explained in barracuda.cnf.