Skip to content

Cron schedules

Nick Rhodes edited this page Mar 24, 2019 · 4 revisions

Regular scheduling

Preparing package updates

# On the 2nd of every month
30 1 2 * *   root /usr/bin/auter --prep

# Every day at 00:30
30 0 * * *   root /usr/bin/auter --prep

# Every Sunday at 22:00
0 22 * * Sun root /usr/bin/auter --prep

# First Tuesday of the month
30 0 1-7 * * root [ $(date +\%a) = "Tue" ] && /usr/bin/auter --prep

Applying package updates

# On the 14th of every month
30 1 14 * *    root /usr/bin/auter --apply

# First Tuesday 1 hour after prep
30 1 1-7 * *   root [ $(date +\%a) = "Tue" ] && /usr/bin/auter --apply

# Third Sunday
30 1 15-21 * * root [ $(date +\%a) = "Sun" ] && /usr/bin/auter --apply

# Every day at 2.30am
30 2 * * *    root /usr/bin/auter --apply

When AUTOREBOOT is set to no in /etc/auter/auter.conf

# Prep Every Friday at 22:00
0 22 * * Fri root /usr/bin/auter --prep

# Apply Every Saturday at 23:00
0 23 * * Sat root /usr/bin/auter --apply

# Reboot Every Sunday at 10:00
0 10 * * Sun root /usr/bin/auter --reboot

# Running on boot
@reboot        root /usr/bin/auter --apply

Irregular scheduling

Running one-off updates via at

$ at "1am Feb 17" <<< "/usr/bin/auter --prep"
$ at "4am Feb 23" <<< "/usr/bin/auter --apply --reboot"

Running on reboot

@reboot    root /usr/bin/auter --apply