🌱 CRON
https://ole.michelsen.dk/blog/schedule-jobs-with-crontab-on-mac-osx.html
Cron Jobs
-
https://www.digitalocean.com/community/articles/how-to-use-cron-to-automate-tasks-on-a-vps
-
http://www.maclife.com/article/columns/terminal_101_creating_cron_jobs
-
http://www.nncron.ru/help/EN/working/cron-format.htm
# .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed
Add/Remove
add and remove rows
env EDITOR=nano crontab -e
view
crontab -l
SSH troubles
http://eli.thegreenplace.net/2013/10/08/some-notes-on-logging-and-ssh-access-from-cron-jobs/
https://help.github.com/articles/working-with-ssh-key-passphrases
Fix
: rsync -a -e "ssh -i /PATH/TO/id_rsa" user@server:/PATH/ /PATH/
ssh key with no passphrase