- localy crontab -e
- sudo crontab -e
- 30 21 * * * /home/james/.nvm/versions/node/v16.13.1/bin/node /home/james/ee-backend/userBackup.js >> /home/james/ee-backend/backup.log 2>&1 min | hour | day of month | month | day of week | * wildcard |
- 0 0,4,8,12,16,20 * * * /home/james/.nvm/versions/node/v16.13.1/bin/node /home/james/ee-backend/userBackup.js >> /home/james/ee-backend/backup.log 2>&1
- ps -ef | grep cron