Skip to content

Instantly share code, notes, and snippets.

@wwwins
Created October 19, 2018 09:07
Show Gist options
  • Save wwwins/131e258b846386264020432a8ddc72d2 to your computer and use it in GitHub Desktop.
Save wwwins/131e258b846386264020432a8ddc72d2 to your computer and use it in GitHub Desktop.
intel-8th crontab
*/5 * * * * /usr/local/bin/autossh.sh
#20 0 * * * find /home/isobar/upload -type f -mtime +0 -exec mv '{}' /mnt/data/backup/ftp/ \;
#22 0 * * * mkdir /mnt/data/backup/public/$(date +\%Y\%m\%d);find /home/xxx/intel-8th/public -mindepth 1 -type d -mtime +0 -exec mv '{}' /mnt/data/backup/public/$(date +\%Y\%m\%d)/ \;
31 0 * * * mkdir /mnt/data/backup/ftp/$(date +\%Y\%m\%d);mv /home/isobar/upload/*.mp4 /mnt/data/backup/ftp/$(date +\%Y\%m\%d)/;
41 0 * * * mkdir /mnt/data/backup/public/$(date +\%Y\%m\%d);mv /home/xxx/intel-8th/public/* /mnt/data/backup/public/$(date +\%Y\%m\%d)/;
@reboot /usr/bin/forever --workingDir /home/xxx/intel-8th start /home/xxx/intel-8th/src/app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment