{"id":101,"date":"2023-08-07T10:27:48","date_gmt":"2023-08-07T02:27:48","guid":{"rendered":"https:\/\/guoyingxu.cn\/?p=101"},"modified":"2023-08-07T10:27:48","modified_gmt":"2023-08-07T02:27:48","slug":"rsync","status":"publish","type":"post","link":"https:\/\/guoyingxu.cn\/?p=101","title":{"rendered":"rsync"},"content":{"rendered":"\n<!doctype html>\n<html>\n<head>\n<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>\n<title><\/title>\n<\/head>\n<body><pre><code class='language-shell' lang='shell'>#!\/bin\/sh\n# ScriptName: \/opt\/scripts\/sync.sh\n# Update: 2013-07-15\n\nhost=10.7.101.126\n\ncase $1 in\n    iov41x)\n        rsync -avz --delete -K --exclude=*.pid --exclude=*.log \/opt\/iov41x\/dm-svr-faw\/ $host:\/opt\/iov41x\/dm-svr-faw\/\n        rsync -avz --delete -K --exclude=*.pid --exclude=*.log \/opt\/iov41x\/filestore-svr-faw\/ $host:\/opt\/iov41x\/filestore-svr-faw\/\n    ;;\n    #tima)\n    #    rsync -avz --delete \/tima\/config\/ $host:\/tima\/config\n    #    #rsync -avz --delete \/opt\/spBaseData_8081\/conf\/context.xml $host:\/opt\/spBaseData_8081\/conf\/context.xml\n    #    #rsync -avz --delete \/opt\/rpService_8080\/conf\/context.xml $host:\/opt\/rpService_8080\/conf\/context.xml\n   # ;;\n   # fawvw)\n   #     rsync -avz --delete --include-from=$include_file \/timafawvw\/config\/ $host:\/timafawvw\/config\n   # ;;\n    #link)\n    #    rsync -avz --delete -K \/opt\/spBaseData_8081\/webapps\/*.war  $host:\/opt\/spBaseData_8081\/webapps\/\n    #    rsync -avz --delete -K \/opt\/rpService_8080\/webapps\/*.war  $host:\/opt\/rpService_8080\/webapps\/\n    #;;\n    go)\n        echo &quot;---------- $host ----------&quot;\n        ssh $host\n    ;;\n    *)\n    echo host: $host\n    echo &#39;&#39;\n    echo &quot;$0 iov41x|go&quot;\n    ;;\nesac\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/sh # ScriptName: \/opt\/scripts\/sync.sh # Update:  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":0,"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"wp:attachment":[{"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guoyingxu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}