{"id":873,"date":"2020-05-01T19:46:56","date_gmt":"2020-05-01T12:46:56","guid":{"rendered":"http:\/\/www.oopsbox.com\/?p=873"},"modified":"2020-05-01T21:17:04","modified_gmt":"2020-05-01T14:17:04","slug":"rsync-%e0%b8%ab%e0%b9%89%e0%b8%b2%e0%b8%a1%e0%b8%ab%e0%b8%a2%e0%b8%b8%e0%b8%94-%e0%b8%ab%e0%b9%89%e0%b8%b2%e0%b8%a1%e0%b8%ab%e0%b8%b2%e0%b8%a2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%99%e0%b8%b2%e0%b8%a2","status":"publish","type":"post","link":"https:\/\/www.oopsbox.com\/?p=873","title":{"rendered":"rsync \u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e22\u0e38\u0e14 \u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e32\u0e22\u0e41\u0e25\u0e30\u0e19\u0e32\u0e22\u0e15\u0e49\u0e2d\u0e07\u0e44\u0e1b\u0e15\u0e48\u0e2d"},"content":{"rendered":"<p>\u0e1a\u0e25\u0e47\u0e2d\u0e01\u0e15\u0e49\u0e2d\u0e19\u0e23\u0e31\u0e1a\u0e15\u0e49\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e41\u0e25\u0e30\u0e27\u0e31\u0e19\u0e41\u0e23\u0e07\u0e07\u0e32\u0e19 \u0e14\u0e49\u0e27\u0e22\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e22\u0e49\u0e32\u0e22\u0e44\u0e1f\u0e25\u0e4c\u0e08\u0e33\u0e19\u0e27\u0e19\u0e19\u0e49\u0e2d\u0e22\u0e19\u0e34\u0e14\u0e21\u0e2b\u0e32\u0e28\u0e32\u0e25 \u0e41\u0e1a\u0e1a\u0e40\u0e23\u0e48\u0e07\u0e14\u0e48\u0e27\u0e19 \u0e08\u0e33\u0e19\u0e27\u0e19\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e44\u0e1b\u0e44\u0e27\u0e49\u0e2d\u0e35\u0e01\u0e17\u0e35\u0e41\u0e25\u0e30\u0e07\u0e32\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e22\u0e38\u0e14\u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e07\u0e32\u0e19\u0e08\u0e30\u0e40\u0e2a\u0e23\u0e47\u0e08 (\u0e19\u0e35\u0e48\u0e21\u0e31\u0e19\u0e2a\u0e30\u0e17\u0e49\u0e2d\u0e19\u0e0a\u0e35\u0e27\u0e34\u0e15\u0e43\u0e04\u0e23\u0e1a\u0e49\u0e32\u0e07\u0e44\u0e2b\u0e21 ^__^) \u0e43\u0e04\u0e23\u0e21\u0e35\u0e07\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e41\u0e1a\u0e1a\u0e14\u0e48\u0e27\u0e19 \u0e46 \u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e21\u0e35\u0e40\u0e27\u0e25\u0e32\u0e43\u0e2b\u0e49\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e32\u0e21\u0e2d\u0e19\u0e34\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e30\u0e23\u0e31\u0e19\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e23\u0e2d\u0e1a \u0e01\u0e47\u0e43\u0e0a\u0e49\u0e2a\u0e04\u0e23\u0e34\u0e1b\u0e17\u0e4c\u0e19\u0e35\u0e49\u0e44\u0e1b\u0e1b\u0e23\u0e31\u0e1a\u0e44\u0e14\u0e49<\/p>\n<p>\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e04\u0e23\u0e48\u0e32\u0e27 \u0e46 \u0e04\u0e37\u0e2d<\/p>\n<ul>\n<li>\u0e43\u0e0a\u0e49 rsync \u0e43\u0e19\u0e01\u0e32\u0e23\u0e42\u0e2d\u0e19\u0e22\u0e49\u0e32\u0e22\u0e44\u0e1f\u0e25\u0e4c\u0e44\u0e1b\u0e2d\u0e48\u0e32\u0e19\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e15\u0e48\u0e2d\u0e44\u0e14\u0e49<a href=\"https:\/\/linux.die.net\/man\/1\/rsync\">\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48<\/a><\/li>\n<li>\u0e2d\u0e32\u0e08\u0e21\u0e35\u0e1a\u0e32\u0e07\u0e0a\u0e48\u0e27\u0e07\u0e2b\u0e23\u0e37\u0e2d error \u0e02\u0e31\u0e14\u0e08\u0e31\u0e07\u0e2b\u0e27\u0e30\u0e0a\u0e48\u0e27\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 rsync \u0e17\u0e33\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e1b\u0e34\u0e14\u0e15\u0e31\u0e27\u0e25\u0e07\u0e01\u0e47\u0e43\u0e2b\u0e49\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 rsync \u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e17\u0e33\u0e07\u0e32\u0e19\u0e15\u0e48\u0e2d (Loop) \u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 (\u0e14\u0e39\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22)<\/li>\n<li>\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27\u0e01\u0e47 Line notify \u0e19\u0e34\u0e14\u0e19\u0e36\u0e07<\/li>\n<\/ul>\n<pre>#!\/usr\/bin\/env bash\r\n\r\n# Declare an array of Token\r\ndeclare -a ACCESS_TOKENS=(\"token1\" \"token2\")\r\nSTART=$(date +\"%d-%m-%Y %H:%M\")\r\nRC=1\r\n\r\nwhile [[ $RC -ne 0 ]]\r\ndo\r\n    NOW=$(date +\"%d-%m-%Y %H:%M\")\r\n\r\n    rsync -arv --partial --progress --ignore-errors [source] [destination]\r\n    RC=$?\r\n    \r\n    if [[ $RC -ne 0 ]] ; then\r\n        echo \"$NOW Rsync failure. Backing off and retrying...\"\r\n        sleep 180\r\n    fi\r\ndone\r\n\r\n# Iterate the token array\r\nfor token in \"${ACCESS_TOKENS[@]}\"; do\r\n    echo $token\r\n    curl -X POST https:\/\/notify-api.line.me\/api\/notify -H \"Authorization: Bearer $token\" -F \"Rsync start $START completed normally\" &gt; \/dev\/null 2&gt;&amp;1   \r\ndone\r\n\r\necho \"Rsync start $START completed normally\"\r\n\r\n<\/pre>\n<p>\u0e08\u0e1a\u0e1b\u0e34\u0e4a\u0e07\u0e07\u0e07 (\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e14\u0e37\u0e49\u0e2d\u0e01\u0e47\u0e41\u0e04\u0e48\u0e1e\u0e22\u0e32\u0e22\u0e32\u0e21)<br \/>\n\u0e1b.\u0e25.<br \/>\n\u0e40\u0e1c\u0e37\u0e48\u0e2d\u0e40\u0e04\u0e2a\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e35\u0e2a\u0e15\u0e32\u0e23\u0e4c\u0e17\u0e01\u0e47\u0e40\u0e2d\u0e32\u0e44\u0e1b\u0e44\u0e27\u0e49\u0e43\u0e19 cron job \u0e14\u0e49\u0e27\u0e22\u0e19\u0e30 ^__^<\/p>\n<p>&nbsp;<\/p>\n<div id=\"s-share-buttons\" class=\"\"><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"fb-share-button\" data-href=\"https:\/\/www.oopsbox.com\/?p=873\" data-type=\"button_count\"><\/div><\/div><div class=\"s-single-share\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"g-plusone\" data-size=\"medium\"><\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/\/www.pinterest.com\/pin\/create\/button\/\" data-pin-do=\"buttonBookmark\"  data-pin-color=\"red\"><img decoding=\"async\" src=\"\/\/assets.pinterest.com\/images\/pidgets\/pinit_fg_en_rect_red_20.png\" \/><\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<script type=\"text\/javascript\" async defer src=\"\/\/assets.pinterest.com\/js\/pinit.js\"><\/script>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div><div class=\"s-single-share\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"mailto:?Subject=rsync%20\u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e22\u0e38\u0e14%20\u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e32\u0e22\u0e41\u0e25\u0e30\u0e19\u0e32\u0e22\u0e15\u0e49\u0e2d\u0e07\u0e44\u0e1b\u0e15\u0e48\u0e2d&Body=Here%20is%20the%20link%20to%20the%20article:%20https:\/\/www.oopsbox.com\/?p=873\" title=\"Email\" class=\"s3-email\"><img decoding=\"async\" src=\"https:\/\/www.oopsbox.com\/wp-content\/plugins\/simple-social-share\/includes\/..\/images\/share-email.png\"><\/a>\n\t\t\t\t\t\t\t\t\t\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0e1a\u0e25\u0e47\u0e2d\u0e01\u0e15\u0e49\u0e2d\u0e19\u0e23\u0e31\u0e1a\u0e15\u0e49\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e41\u0e25\u0e30\u0e27\u0e31\u0e19\u0e41\u0e23\u0e07\u0e07\u0e32\u0e19 \u0e14\u0e49\u0e27\u0e22\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e22\u0e49\u0e32\u0e22\u0e44\u0e1f\u0e25\u0e4c\u0e08\u0e33\u0e19\u0e27\u0e19\u0e19\u0e49\u0e2d\u0e22\u0e19\u0e34\u0e14\u0e21\u0e2b\u0e32\u0e28\u0e32\u0e25 \u0e41\u0e1a\u0e1a\u0e40\u0e23\u0e48\u0e07\u0e14\u0e48\u0e27\u0e19 \u0e08\u0e33\u0e19\u0e27\u0e19\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e44\u0e1b\u0e44\u0e27\u0e49\u0e2d\u0e35\u0e01\u0e17\u0e35\u0e41\u0e25\u0e30\u0e07\u0e32\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e22\u0e38\u0e14\u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e07\u0e32\u0e19\u0e08\u0e30\u0e40\u0e2a\u0e23\u0e47\u0e08 (\u0e19\u0e35\u0e48\u0e21\u0e31\u0e19\u0e2a\u0e30\u0e17\u0e49\u0e2d\u0e19\u0e0a\u0e35\u0e27\u0e34\u0e15\u0e43\u0e04\u0e23\u0e1a\u0e49\u0e32\u0e07\u0e44\u0e2b\u0e21 ^__^) \u0e43\u0e04\u0e23\u0e21\u0e35\u0e07\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e41\u0e1a\u0e1a\u0e14\u0e48\u0e27\u0e19 \u0e46 \u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e21\u0e35\u0e40\u0e27\u0e25\u0e32\u0e43\u0e2b\u0e49\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e32\u0e21\u0e2d\u0e19\u0e34\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e30\u0e23\u0e31\u0e19\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e23\u0e2d\u0e1a \u0e01\u0e47\u0e43\u0e0a\u0e49\u0e2a\u0e04\u0e23\u0e34\u0e1b\u0e17\u0e4c\u0e19\u0e35\u0e49\u0e44\u0e1b\u0e1b\u0e23\u0e31\u0e1a\u0e44\u0e14\u0e49 \u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e04\u0e23\u0e48\u0e32\u0e27 \u0e46 \u0e04\u0e37\u0e2d \u0e43\u0e0a\u0e49 rsync \u0e43\u0e19\u0e01\u0e32\u0e23\u0e42\u0e2d\u0e19\u0e22\u0e49\u0e32\u0e22\u0e44\u0e1f\u0e25\u0e4c\u0e44\u0e1b\u0e2d\u0e48\u0e32\u0e19\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e15\u0e48\u0e2d\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48 \u0e2d\u0e32\u0e08\u0e21\u0e35\u0e1a\u0e32\u0e07\u0e0a\u0e48\u0e27\u0e07\u0e2b\u0e23\u0e37\u0e2d error \u0e02\u0e31\u0e14\u0e08\u0e31\u0e07\u0e2b\u0e27\u0e30\u0e0a\u0e48\u0e27\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 rsync \u0e17\u0e33\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e1b\u0e34\u0e14\u0e15\u0e31\u0e27\u0e25\u0e07\u0e01\u0e47\u0e43\u0e2b\u0e49\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 rsync \u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e17\u0e33\u0e07\u0e32\u0e19\u0e15\u0e48\u0e2d (Loop) \u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 (\u0e14\u0e39\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a\u0e21\u0e32\u0e01\u0e21\u0e32\u0e22) \u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27\u0e01\u0e47 Line notify \u0e19\u0e34\u0e14\u0e19\u0e36\u0e07 #!\/usr\/bin\/env bash # Declare an array of Token declare -a ACCESS_TOKENS=(&#8220;token1&#8221; &#8220;token2&#8243;) START=$(date +&#8221;%d-%m-%Y %H:%M&#8221;) RC=1 while [[ $RC -ne 0 ]] do NOW=$(date +&#8221;%d-%m-%Y &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.oopsbox.com\/?p=873\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;rsync \u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e22\u0e38\u0e14 \u0e2b\u0e49\u0e32\u0e21\u0e2b\u0e32\u0e22\u0e41\u0e25\u0e30\u0e19\u0e32\u0e22\u0e15\u0e49\u0e2d\u0e07\u0e44\u0e1b\u0e15\u0e48\u0e2d&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":874,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[44],"tags":[111,10],"class_list":["post-873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-rsync","tag-shell-script","entry"],"views":2859,"_links":{"self":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=873"}],"version-history":[{"count":5,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/873\/revisions"}],"predecessor-version":[{"id":879,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/873\/revisions\/879"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=\/wp\/v2\/media\/874"}],"wp:attachment":[{"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oopsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}