Skip to content

Instantly share code, notes, and snippets.

@navsqi
Last active December 18, 2020 10:56
Show Gist options
  • Select an option

  • Save navsqi/011d37c89aa057b7a7968372f5bb03bf to your computer and use it in GitHub Desktop.

Select an option

Save navsqi/011d37c89aa057b7a7968372f5bb03bf to your computer and use it in GitHub Desktop.
Cronjobs cpanel
# Back up db
# 0 0 * * * => everyday at 00:00
mysqldump -u user_name -p'your_password' -h127.0.0.1 db_name | gzip > /home/dreamtechnology/logistics/backups/backup_$(date +"\%Y.\%m.\%d.\%S.\%N").sql.gz
# Curl
# */5 * * * * => every 5 minute
curl -m 120 -s http://api.xxx.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment