{"id":476,"date":"2011-07-20T17:31:04","date_gmt":"2011-07-21T03:31:04","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=476"},"modified":"2023-07-05T21:41:40","modified_gmt":"2023-07-06T07:41:40","slug":"setting-up-a-cron-job-on-godaddy","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/","title":{"rendered":"Setting up a Cron Job on GoDaddy"},"content":{"rendered":"

Set up GoDaddy Cron Job<\/h2>\n
    \n
  1. Log Into your GoDaddy.com account.<\/li>\n
  2. Choose \u201cMy Hosting Account\u201d from the \u201cHosting & Servers\u201d menu on the top navigation bar.<\/li>\n
  3. In the Hosting Account list, click the Open link beside the account you want to use for your website.<\/li>\n
  4. In the Hosting Manager window, click the Cron Manager icon or \u201cCron Manager\u201d menu item under content menu.<\/li>\n
  5. Now you are on the page where you need to setup two cron jobs: one to run daily for the daily backups and one to run monthly for the monthly backups. The monthly one can run on any date of the month, just as long as the time it runs at is after the daily backup run.<\/li>\n
  6. You need to know the following:<\/li>\n
  7. Host Name: (Usually localhost but in case of godaddy account it will be look like mysql123.secureserver.net)<\/li>\n
  8. Database Name: Name of the your database.<\/li>\n
  9. User Name: User name of the database. In case of godaddy account it will be same as db name.<\/li>\n
  10. DB Password: Database user password for authentication.<\/li>\n
  11. Use the various drop downs to schedule your Cron job and enter the Cron Command Line you have created.<\/li>\n<\/ol>\n
    The command line should be something like:<\/strong><\/div>\n
    mysqldump –opt -Q -h (hostname) –user=(user-name) –password=(password) (database-name) > (full path of backup file)<\/div>\n
    For example  if you did daily backups and wanted to keep one month’s worth (after 1 month it would be overwritten):<\/div>\n
    mysqldump –opt -Q -h some.thing.com –user=mywebdb –password=thePassword mywebdb > \/home\/content\/b\/a\/b\/babychep\/html\/backups\/bak_`date +%d`.sql<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[6],"tags":[43],"yoast_head":"\nSetting up a Cron Job on GoDaddy - My Monkey Do<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting up a Cron Job on GoDaddy - My Monkey Do\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/\" \/>\n<meta property=\"og:site_name\" content=\"My Monkey Do\" \/>\n<meta property=\"article:published_time\" content=\"2011-07-21T03:31:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-06T07:41:40+00:00\" \/>\n<meta name=\"author\" content=\"Webhead\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Webhead\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/\",\"url\":\"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/\",\"name\":\"Setting up a Cron Job on GoDaddy - My Monkey Do\",\"isPartOf\":{\"@id\":\"https:\/\/mymonkeydo.com\/#website\"},\"datePublished\":\"2011-07-21T03:31:04+00:00\",\"dateModified\":\"2023-07-06T07:41:40+00:00\",\"author\":{\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\"},\"breadcrumb\":{\"@id\":\"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mymonkeydo.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting up a Cron Job on GoDaddy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mymonkeydo.com\/#website\",\"url\":\"https:\/\/mymonkeydo.com\/\",\"name\":\"My Monkey Do\",\"description\":\"A Log of Coding Solutions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mymonkeydo.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\",\"name\":\"Webhead\",\"url\":\"https:\/\/mymonkeydo.com\/author\/corey\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting up a Cron Job on GoDaddy - My Monkey Do","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/","og_locale":"en_US","og_type":"article","og_title":"Setting up a Cron Job on GoDaddy - My Monkey Do","og_url":"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/","og_site_name":"My Monkey Do","article_published_time":"2011-07-21T03:31:04+00:00","article_modified_time":"2023-07-06T07:41:40+00:00","author":"Webhead","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Webhead","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/","url":"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/","name":"Setting up a Cron Job on GoDaddy - My Monkey Do","isPartOf":{"@id":"https:\/\/mymonkeydo.com\/#website"},"datePublished":"2011-07-21T03:31:04+00:00","dateModified":"2023-07-06T07:41:40+00:00","author":{"@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829"},"breadcrumb":{"@id":"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mymonkeydo.com\/setting-up-a-cron-job-on-godaddy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mymonkeydo.com\/"},{"@type":"ListItem","position":2,"name":"Setting up a Cron Job on GoDaddy"}]},{"@type":"WebSite","@id":"https:\/\/mymonkeydo.com\/#website","url":"https:\/\/mymonkeydo.com\/","name":"My Monkey Do","description":"A Log of Coding Solutions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mymonkeydo.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829","name":"Webhead","url":"https:\/\/mymonkeydo.com\/author\/corey\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/476"}],"collection":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/comments?post=476"}],"version-history":[{"count":1,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":1562,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/476\/revisions\/1562"}],"wp:attachment":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/tags?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}