{"id":12979,"date":"2019-05-29T10:27:21","date_gmt":"2019-05-29T10:27:21","guid":{"rendered":"https:\/\/test2.gginternal.net\/knowledgebase\/article\/how-to-set-up-and-use-scheduled-tasks\/"},"modified":"2024-09-03T08:54:21","modified_gmt":"2024-09-03T08:54:21","slug":"how-to-set-up-and-use-scheduled-tasks","status":"publish","type":"ht_kb","link":"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-set-up-and-use-scheduled-tasks\/","title":{"rendered":"How to Set Up and Use Scheduled Tasks"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2024\/03\/banner10_1mgbruh.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>This guide will show you how to properly set and use the scheduled tasks section of our Pterodactyl Panel.<\/p>\n\n\n\n<p>The scheduled tasks option is one of our panel features that allows you to set scheduled events\/commands to be executed at a specific date\/time.<\/p>\n\n\n\n<p>You can use it for regular backups, world saves, server restarts, in-game messages, and anything else you wish to execute.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">  How to Create a Scheduled Task  <\/h1>\n\n\n\n<p>To create a new scheduled task, you need to:<\/p>\n\n\n\n<p>1. Log in to your Pterodactyl Panel <a href=\"http:\/\/panel.ggservers.com\">here<\/a>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<p>2. Click on <code>Scheduled Tasks<\/code>and click on <code>Create schedule<\/code>.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"380\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-1024x380.png\" alt=\"\" class=\"wp-image-14225\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-1024x380.png 1024w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-300x111.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-768x285.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-50x19.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-1536x570.png 1536w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-60x22.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1-100x37.png 100w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/1-1.png 1882w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>The Pterodactyl Panel is using Cronjob syntax, you can click on &#8220;Show Cheatsheet&#8221; for more details.<br><br><strong>If the Cheatsheet seems confusing, here are some examples:<\/strong><br><br>&#8211; To create a task every day, at 2:30AM you need to type &#8220;30&#8221; in the <code>Minutes<\/code> box and &#8220;2&#8221; in <code>Hour<\/code> box:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"329\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/3.png\" alt=\"\" class=\"wp-image-14227\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/3.png 952w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/3-300x104.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/3-768x265.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/3-50x17.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/3-60x21.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/3-100x35.png 100w\" sizes=\"auto, (max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p>&#8211; To create task every 6 hours, you will need to use *\/6 in the <code>Hour<\/code> box:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"959\" height=\"340\" data-id=\"14228\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/4.png\" alt=\"\" class=\"wp-image-14228\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/4.png 959w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/4-300x106.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/4-768x272.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/4-50x18.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/4-60x21.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/4-100x35.png 100w\" sizes=\"auto, (max-width: 959px) 100vw, 959px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>The Cronjob on the panel consists of five fields representing time and date. The fields are:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Minute<\/strong> (0 &#8211; 59)<\/li>\n\n\n\n<li><strong>Hour<\/strong> (0 &#8211; 23)<\/li>\n\n\n\n<li><strong>Day of Month<\/strong> (1 &#8211; 31)<\/li>\n\n\n\n<li><strong>Month<\/strong> (1 &#8211; 12)<\/li>\n\n\n\n<li><strong>Day of Week<\/strong> (0 &#8211; 6) (Sunday to Saturday)<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Using Step Values<\/h3>\n\n\n\n<p>Step values allow you to define a frequency for the task to run. The syntax is as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>* \/ n<\/code><\/strong>: Executes the task every <code>n<\/code> units of time. For example, <code>*\/5<\/code> in the <code>minute<\/code> field means &#8220;every 5 minutes.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>3. Set the schedule to your liking and click on <code>Create schedule<\/code> , then you will need to set the task by clicking on <code>New Task<\/code>.<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"258\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1-1024x258.png\" alt=\"\" class=\"wp-image-14232\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1-1024x258.png 1024w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1-300x76.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1-768x194.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1-50x13.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1-60x15.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1-100x25.png 100w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/5-1.png 1241w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can choose between the following actions:<br><br>A. Send command &#8211; This task will run the command set on Payload, for example I have set a give command:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"587\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/6.png\" alt=\"\" class=\"wp-image-14235\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/6.png 980w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/6-300x180.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/6-768x460.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/6-50x30.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/6-60x36.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/6-100x60.png 100w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">The slash ( \/ ) is not required to run the command. Please make sure NOT to use the slash before the command.<\/p>\n\n\n\n<p>B. Send power action &#8211; This task is used to start\/restart\/stop\/terminate the server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"475\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/7.png\" alt=\"\" class=\"wp-image-14236\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/7.png 976w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/7-300x146.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/7-768x374.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/7-50x24.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/7-60x29.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/7-100x49.png 100w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/figure>\n\n\n\n<p>C. Create Backup &#8211; This task will create a backup of the desired files.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"628\" src=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/8.png\" alt=\"\" class=\"wp-image-14237\" srcset=\"https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/8.png 981w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/8-300x192.png 300w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/8-768x492.png 768w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/8-50x32.png 50w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/8-60x38.png 60w, https:\/\/ggservers.com\/knowledgebase\/wp-content\/uploads\/2019\/05\/8-100x64.png 100w\" sizes=\"auto, (max-width: 981px) 100vw, 981px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">It&#8217;s recommended to ignore the unwanted files such as old backups and worlds you are not using, as those can take a longer time to back up as well as will fill up the space faster.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>4. Click on <code>Create Task<\/code>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">Note that we have a guide for setting up <a href=\"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-set-up-scheduled-restarts\/\">scheduled restarts<\/a> and also <a href=\"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-create-automatic-backups\/\">scheduled backup<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-success\">If you find any issues setting up or using scheduled tasks on your server please contact us on live chat or via the <a href=\"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-open-a-support-ticket\/\">ticket system<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2755 Useful Links \u2755<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-install-any-server-type-clean-installation\/\">How to Install Any Server Type (Clean Installation)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-change-your-server-type-and-version\/\">Changing your server version and type<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-upload-and-use-a-custom-jar-file\/\">How to Upload and Use a Custom Jar File<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This guide will show you how to properly set and use the scheduled tasks section of our Multicraft panel.<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"_acf_changed":false,"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"ht-kb-category":[28],"ht-kb-tag":[],"class_list":["post-12979","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-pterodactyl"],"acf":[],"_links":{"self":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/12979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=12979"}],"version-history":[{"count":6,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/12979\/revisions"}],"predecessor-version":[{"id":14243,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/12979\/revisions\/14243"}],"wp:attachment":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=12979"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=12979"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=12979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}