Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision |
| devops:crontab [2022-01-22] – created dcai | devops:crontab [2022-05-15] (current) – dcai |
|---|
| redirect all error output to a file, ''&>> /tmp/whatever.log'' isn't support by ''sh'', so use command below instead: | redirect all error output to a file, ''&>> /tmp/whatever.log'' isn't support by ''sh'', so use command below instead: |
| |
| 12 * * * * /opt/homebrew/bin/brew update >> /tmp/brew.log 2>&1 | <code> |
| | 12 * * * * /opt/homebrew/bin/brew update >> /tmp/brew.log 2>&1 |
| | 20 */3 * * * /opt/homebrew/bin/rsync -a -O --delete /Users/dcai/Downloads /Volumes/JUPITER/backups/duck/ >> /tmp/backup.log 2>&1 |
| | 30 */3 * * * /opt/homebrew/bin/rsync -a -O --delete /Users/dcai/Dropbox /Volumes/JUPITER/backups/duck/ >> /tmp/backup.log 2>&1 |
| | 40 */3 * * * /opt/homebrew/bin/rsync -a -O --delete /Users/dcai/Music /Volumes/JUPITER/backups/duck/ >> /tmp/backup.log 2>&1 |
| | 50 */3 * * * /opt/homebrew/bin/rsync -a -O --delete --exclude "node_modules" /Users/dcai/src /Volumes/JUPITER/backups/duck/ >> /tmp/backup.log 2>&1 |
| | 01 */1 * * * /usr/bin/curl 'wttr.in/Sydney?format=%l:+%c+%f' > /tmp/weather.info |
| | </code> |
| | |
| | |
| | |
| | Adding -O / --omit-dir-times to avoid setting times on directories (which causes errors in ntfs) |
| | |