{"id":1123,"date":"2020-09-21T11:41:04","date_gmt":"2020-09-21T05:41:04","guid":{"rendered":"https:\/\/goodhost.kz\/wiki\/?p=1123"},"modified":"2020-09-21T11:43:32","modified_gmt":"2020-09-21T05:43:32","slug":"%d0%b4%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-cron-%d0%b7%d0%b0%d0%b4%d0%b0%d1%87-%d0%b2-linux","status":"publish","type":"post","link":"https:\/\/goodhost.kz\/wiki\/?p=1123","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 cron \u0437\u0430\u0434\u0430\u0447 \u0432 Linux"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u0424\u043e\u0440\u043c\u0430\u0442 Linux Crontab<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MIN HOUR DOM MON DOW CMD<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430: \u041f\u043e\u043b\u044f \u0438 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b Crontab (\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 Linux Crontab)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u041f\u043e\u043b\u0435<\/th><th>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/th><th>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/th><\/tr><\/thead><tbody><tr><td>MIN<\/td><td>\u041c\u0438\u043d\u0443\u0442\u044b<\/td><td>\u041e\u0442 0 \u0434\u043e 59<\/td><\/tr><tr><td>HOUR<\/td><td>\u0427\u0430\u0441\u044b<\/td><td>\u041e\u0442 0 \u0434\u043e 23<\/td><\/tr><tr><td>DOM<\/td><td>\u0414\u0435\u043d\u044c \u043c\u0435\u0441\u044f\u0446\u0430<\/td><td>1-31<\/td><\/tr><tr><td>MON<\/td><td>\u041c\u0435\u0441\u044f\u0446<\/td><td>1-12<\/td><\/tr><tr><td>DOW<\/td><td>\u0414\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438<\/td><td>0-6<\/td><\/tr><tr><td>CMD<\/td><td>\u041a\u043e\u043c\u0430\u043d\u0434\u0430<\/td><td>\u041b\u044e\u0431\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0441\u043d\u043e\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f cron \u2013 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (full-backup) 10 \u0438\u044e\u043d\u044f \u0432 8.30.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 24-\u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0422\u0430\u043a \u0447\u0442\u043e 8 \u0410\u041c \u2013 8, 8 \u0420\u041c \u2013 20 \u0447\u0430\u0441\u043e\u0432.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>30 08 10 06 * \/home\/full-backup<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><code>30<\/code> \u2013 30-\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430<\/li><li><code>08<\/code> \u2013 08 \u0410\u041c<\/li><li><code>10<\/code> \u2013 10-\u0439 \u0434\u0435\u043d\u044c<\/li><li><code>*<\/code> \u2013 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 Cron \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash\n* * * * * \/CMD<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u043f\u0443\u0441\u043a \u0444\u043e\u043d\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 Cron \u043a\u0430\u0436\u0434\u044b\u0435 10 \u043c\u0438\u043d\u0443\u0442<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>*\/10 * * * * \/CMD<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 Crontab-\u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0430\u0448\u0438 \u0444\u0430\u0439\u043b\u044b <code>crontab-l<\/code> \u0438\u0437 \u0432\u044b\u0448\u0435\u0439 \u0443\u0447\u0451\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 unix.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0424\u043e\u0440\u043c\u0430\u0442 Linux Crontab MIN HOUR DOM MON DOW CMD \u0422\u0430\u0431\u043b\u0438\u0446\u0430: \u041f\u043e\u043b\u044f \u0438 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b Crontab (\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 Linux Crontab) \u041f\u043e\u043b\u0435 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 MIN \u041c\u0438\u043d\u0443\u0442\u044b \u041e\u0442 0 \u0434\u043e 59 HOUR \u0427\u0430\u0441\u044b \u041e\u0442 0 \u0434\u043e 23 DOM \u0414\u0435\u043d\u044c \u043c\u0435\u0441\u044f\u0446\u0430 1-31 MON \u041c\u0435\u0441\u044f\u0446 1-12 DOW \u0414\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438 0-6 CMD \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u041b\u044e\u0431\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0432 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/goodhost.kz\/wiki\/?p=1123\" title=\"\u0447\u0438\u0442\u0430\u0442\u044c...\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-1123","post","type-post","status-publish","format-standard","hentry","category-faq---vps-vds"],"_links":{"self":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1123"}],"version-history":[{"count":2,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1123\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1123\/revisions\/1125"}],"wp:attachment":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}