Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
devops:crontab [2022-01-22] – created dcaidevops:crontab [2022-05-15] (current) dcai
Line 6: Line 6:
 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>&
 +30  */3  *  *  * /opt/homebrew/bin/rsync -a -O --delete /Users/dcai/Dropbox /Volumes/JUPITER/backups/duck/ >> /tmp/backup.log 2>&
 +40  */3  *  *  * /opt/homebrew/bin/rsync -a -O --delete /Users/dcai/Music /Volumes/JUPITER/backups/duck/ >> /tmp/backup.log 2>&
 +50  */3  *  *  * /opt/homebrew/bin/rsync -a -O --delete --exclude "node_modules" /Users/dcai/src /Volumes/JUPITER/backups/duck/ >> /tmp/backup.log 2>&
 +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) 
 + 
devops/crontab.1642855068.txt.gz · Last modified: by dcai