Skip to content

Instantly share code, notes, and snippets.

@dedeibel
Created September 18, 2014 08:06
Show Gist options
  • Save dedeibel/16696416a001bc4752ee to your computer and use it in GitHub Desktop.
Save dedeibel/16696416a001bc4752ee to your computer and use it in GitHub Desktop.
backup crontab
# m h dom mon dow command
30 12 * * Mon,Wed,Fri /usr/bin/withbackupdevice /usr/bin/backup
# Every first tuesday
30 12 * * * [ `/bin/date +%u` -eq 2 -a `/bin/date +%e` -lt 8 ] && /usr/bin/withbackupdevice /usr/bin/archive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment