Last active
December 18, 2020 10:56
-
-
Save navsqi/011d37c89aa057b7a7968372f5bb03bf to your computer and use it in GitHub Desktop.
Cronjobs cpanel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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