<input type="hidden" id="_wpnonce" name="_wpnonce" value="9c395428d3" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/2543" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="9c395428d3" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/2543" />{"id":2543,"date":"2014-08-07T14:29:05","date_gmt":"2014-08-07T04:29:05","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=2543"},"modified":"2014-08-08T10:18:31","modified_gmt":"2014-08-08T00:18:31","slug":"godaddy-cron-jobs","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2014\/08\/07\/godaddy-cron-jobs\/","title":{"rendered":"How to setup GoDaddy Cron Jobs"},"content":{"rendered":"<!--CusAds0--><p>If you have a shared hosting account and need to create a Cron Job then follow these simple steps. Cron jobs are scheduled tasks that allow you to run a script in the background at a set frequency.<\/p>\n<h2>HOW TO SETUP GODADDY CRON JOBS INSTRUCTIONS<\/h2>\n<p>Login to your Godaddy Account<\/p>\n<p>Click on Cron Job Manager<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-2549 \" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager.png?strip=all\" alt=\"GoDaddy hosting - Cron Job Manager\" width=\"590\" height=\"707\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager.png?strip=all 689w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-250x300.png?strip=all 250w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager.png?strip=all&amp;w=137 137w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager.png?strip=all&amp;w=413 413w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager.png?strip=all&amp;w=551 551w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/p>\n<p>Click on Create Cron Job<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-2550 \" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job.png?strip=all\" alt=\"GoDaddy hosting - Cron Job Manager Create Cron Job\" width=\"560\" height=\"185\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job.png?strip=all 978w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job-300x99.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job.png?strip=all&amp;w=195 195w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job.png?strip=all&amp;w=391 391w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job.png?strip=all&amp;w=586 586w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job.png?strip=all&amp;w=782 782w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>Enter a title for the job e.g Backup Website Business Legions<\/p>\n<p>For the frequency, set when you want the script to run: e.g daily, weekly, hourly<\/p>\n<p>In command, enter the commands or script file you want to run. Here&#8217;s a few examples:<\/p>\n<h3>To backup your website\/directory use<\/h3>\n<div id=\"wpshdo_1\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_1\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_1\"><\/a><a id=\"wpshat_1\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_1\"  onClick=\"javascript:wpsh_toggleBlock(1)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_code(1)\" title=\"Show code only\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_print(1)\" title=\"Print code\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"https:\/\/www.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif?strip=all&w=960\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_1\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"php\" style=\"font-family:monospace;\"><span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span>zip <span class=\"sy0\">-<\/span>r <span class=\"sy0\">\/<\/span>home<span class=\"sy0\">\/<\/span>content<span class=\"sy0\">\/<\/span>FolderToSaveTheBackupFile<span class=\"sy0\">\/<\/span>SaveFilename`<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span><a href=\"http:\/\/www.php.net\/date\"><span class=\"kw3\">date<\/span><\/a> <span class=\"sy0\">+<\/span>\\<span class=\"sy0\">%<\/span>m\\<span class=\"sy0\">%<\/span>d`<span class=\"sy0\">.<\/span>zip <span class=\"sy0\">\/<\/span>home<span class=\"sy0\">\/<\/span>content<span class=\"sy0\">\/<\/span>TheDirectoryToBackup<\/pre><\/div><\/div>\n<p>Note the syntax above saves the file as SaveFilename[date].zip &#8211; it includes the date and time so that it doesn&#8217;t overwrite previous backup. This will increase your disk space but will ensure you at least have different versions of you backup.<\/p><!--CusAds0-->\n<h3>To backup your SQL database use<\/h3>\n<div id=\"wpshdo_2\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_2\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_2\"><\/a><a id=\"wpshat_2\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_2\"  onClick=\"javascript:wpsh_toggleBlock(2)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_2\" onClick=\"javascript:wpsh_code(2)\" title=\"Show code only\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"#codesyntax_2\" onClick=\"javascript:wpsh_print(2)\" title=\"Print code\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"https:\/\/www.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif?strip=all&w=960\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_2\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"php\" style=\"font-family:monospace;\">mysqldump \u2013opt <span class=\"sy0\">-<\/span>Q <span class=\"sy0\">-<\/span>h servername<span class=\"sy0\">.<\/span>secureserver<span class=\"sy0\">.<\/span>net <span class=\"sy0\">-<\/span>u \u00a0useid \u2013password<span class=\"sy0\">=<\/span>password\u00a0 databasename\u00a0<span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">\/<\/span>home<span class=\"sy0\">\/<\/span>content<span class=\"sy0\">\/<\/span>FolderToSaveTheBackupFile<span class=\"sy0\">\/<\/span>SaveFileName`<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span><a href=\"http:\/\/www.php.net\/date\"><span class=\"kw3\">date<\/span><\/a> <span class=\"sy0\">+<\/span>\\<span class=\"sy0\">%<\/span>m\\<span class=\"sy0\">%<\/span>d`<span class=\"sy0\">.<\/span>sql<\/pre><\/div><\/div>\n<h3>To backup you SQL database and compressing<\/h3>\n<div id=\"wpshdo_3\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_3\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_3\"><\/a><a id=\"wpshat_3\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_3\"  onClick=\"javascript:wpsh_toggleBlock(3)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_3\" onClick=\"javascript:wpsh_code(3)\" title=\"Show code only\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"#codesyntax_3\" onClick=\"javascript:wpsh_print(3)\" title=\"Print code\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"https:\/\/www.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif?strip=all&w=960\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_3\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"php\" style=\"font-family:monospace;\">mysqldump \u2013opt <span class=\"sy0\">-<\/span>Q <span class=\"sy0\">-<\/span>h\u00a0servername<span class=\"sy0\">.<\/span>secureserver<span class=\"sy0\">.<\/span>net <span class=\"sy0\">-<\/span>u \u00a0useid\u00a0\u2013password<span class=\"sy0\">=<\/span>password\u00a0\u00a0databasename <span class=\"sy0\">|<\/span> gzip <span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">\/<\/span>home<span class=\"sy0\">\/<\/span>content<span class=\"sy0\">\/<\/span>FolderToSaveTheBackupFile<span class=\"sy0\">\/<\/span>SaveFileName`<span class=\"sy0\">\/<\/span>bin<span class=\"sy0\">\/<\/span><a href=\"http:\/\/www.php.net\/date\"><span class=\"kw3\">date<\/span><\/a> <span class=\"sy0\">+<\/span>\\<span class=\"sy0\">%<\/span>m\\<span class=\"sy0\">%<\/span>d`<span class=\"sy0\">.<\/span>sql<span class=\"sy0\">.<\/span>gz<\/pre><\/div><\/div>\n<h3>To run\/execute a php script\/file<\/h3>\n<div id=\"wpshdo_4\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_4\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_4\"><\/a><a id=\"wpshat_4\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_4\"  onClick=\"javascript:wpsh_toggleBlock(4)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_4\" onClick=\"javascript:wpsh_code(4)\" title=\"Show code only\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"#codesyntax_4\" onClick=\"javascript:wpsh_print(4)\" title=\"Print code\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"https:\/\/www.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif?strip=all&w=960\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_4\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"php\" style=\"font-family:monospace;\">wget <span class=\"sy0\">-<\/span>O <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span><span class=\"kw4\">null<\/span> http<span class=\"sy0\">:<\/span><span class=\"co1\">\/\/www.businesslegions.com\/example\/cron\/sendmail.php<\/span><\/pre><\/div><\/div>\n<h2>REPORTS<\/h2>\n<p>If you want to receive reports on the Cron Jobs then on the left hand side check if you have set a email address so you can receive reports.<\/p>\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone wp-image-2553 \" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all\" alt=\"GoDaddy hosting - Cron Job Manager Create Cron Job Report\" width=\"536\" height=\"177\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all 978w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1-300x99.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all&amp;w=195 195w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all&amp;w=391 391w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all&amp;w=586 586w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all&amp;w=782 782w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/08\/GoDaddy-hosting-Cron-Job-Manager-Create-Cron-Job1.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>If you have a shared hosting account and need to create a Cron Job then follow these simple steps. Cron jobs are scheduled tasks that allow you to run a script in the background at a set frequency. HOW TO SETUP GODADDY CRON JOBS INSTRUCTIONS Login to your Godaddy Account Click on Cron Job Manager [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2549,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,382],"tags":[616,1652,475,131,1653,393],"class_list":["post-2543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-wordpress","tag-backup","tag-cron","tag-godaddy","tag-job","tag-mysqldump","tag-zip"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=2543"}],"version-history":[{"count":8,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2543\/revisions"}],"predecessor-version":[{"id":2558,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2543\/revisions\/2558"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media\/2549"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=2543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=2543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=2543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}