{"id":7963,"date":"2022-09-28T00:42:30","date_gmt":"2022-09-27T15:42:30","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7963"},"modified":"2022-09-28T13:57:03","modified_gmt":"2022-09-28T04:57:03","slug":"s3-%e3%81%a7%e3%82%b9%e3%83%8a%e3%83%83%e3%83%97%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88%e3%82%92-rsync-%e7%9a%84%e3%81%ab%e3%83%80%e3%82%a6%e3%83%b3%e3%83%ad%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7963","title":{"rendered":"S3 \u3067\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092 rsync \u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b"},"content":{"rendered":"<p>\u307e\u305a\u3001<a href=\"https:\/\/aws.amazon.com\/jp\/s3\/\">Amazon S3<\/a> \u3042\u308b\u3044\u306f\u4e92\u63db\u30b5\u30fc\u30d3\u30b9\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u73fe\u5728\u306e\u72b6\u614b\u3092 <a href=\"https:\/\/rsync.samba.org\/\">rsync<\/a> \u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u306e\u306f\u3001<a href=\"https:\/\/aws.amazon.com\/jp\/cli\/\">aws-cli<\/a> \u306e <a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/s3\/sync.html\"><code>aws s3 sync<\/code><\/a> \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u3053\u3053\u3067\u300crsync \u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u300d\u3068\u3044\u3046\u306e\u306f <code>rsync --delete<\/code> \u306e\u52d5\u4f5c\u3092\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<ul>\n<li>\u30b3\u30d4\u30fc\u5143\uff08S3\uff09\u306b\u3042\u3063\u3066\u30b3\u30d4\u30fc\u5148\uff08\u30ed\u30fc\u30ab\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09\u306b\u306a\u3044\u3082\u306e\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/li>\n<li>\u30b3\u30d4\u30fc\u5143\u306b\u3042\u3063\u3066\u30b3\u30d4\u30fc\u5148\u306b\u540c\u3058\u3082\u306e\u304c\u3042\u308b\u6642\u306f\u3001\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u3002<\/li>\n<li>\u30b3\u30d4\u30fc\u5143\u306b\u3042\u3063\u3066\u30b3\u30d4\u30fc\u5148\u306b\u7570\u306a\u308b\u3082\u306e\u304c\u3042\u308b\u6642\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4e0a\u66f8\u304d\u3059\u308b\u3002<\/li>\n<li>\u30b3\u30d4\u30fc\u5143\u306b\u306a\u304f\u3066\u30b3\u30d4\u30fc\u5148\u306b\u3042\u308b\u3082\u306e\u306f\u3001\u524a\u9664\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u3055\u3066\u3001S3 \u306b\u306f <a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonS3\/latest\/userguide\/Versioning.html\">object versioning<\/a> \u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u3063\u3066\u3001\u6709\u52b9\u306b\u3059\u308b\u3068\u4fdd\u5b58\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5c65\u6b74\u3092\u4fdd\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3046\u3068\u904e\u53bb\u306e\u4efb\u610f\u306e\u6642\u523b\u306e\u72b6\u614b\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3001\u3064\u307e\u308a\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3068\u540c\u7b49\u306e\u6a5f\u80fd\u3092\u5f97\u3089\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u7279\u5b9a\u306e\u6642\u523b\u306e\u72b6\u614b\u3092 rsync \u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u306f\u3001aws-cli \u3067\u306f\u3069\u3046\u3084\u3089\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u4f55\u304b\u30c4\u30fc\u30eb\u306f\u306a\u3044\u3082\u306e\u304b\u3068\u63a2\u3057\u305f\u3068\u3053\u308d\u3001<a href=\"https:\/\/rclone.org\/\">rclone<\/a> \u306e\u73fe\u5728\u306e master \u30d6\u30e9\u30f3\u30c1\u3060\u3068\u5b9f\u73fe\u3067\u304d\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002rclone \u306f &#8220;Rclone syncs your files to cloud storage&#8221; \u3092\u8b33\u3063\u3066\u3044\u308b\u901a\u308a rsync \u7684\u306a\u52d5\u4f5c\u304c\u3067\u304d\u3066\u3001\u591a\u7a2e\u591a\u69d8\u306a\u30af\u30e9\u30a6\u30c9\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u6642\u523b\u3092\u6307\u5b9a\u3059\u308b\u306e\u306f <code>--s3-version-at<\/code> \u3068\u3044\u3046 backend \u56fa\u6709\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e\u3044\u304f\u3064\u304b\u306e\u30af\u30e9\u30a6\u30c9\u30b9\u30c8\u30ec\u30fc\u30b8\u5411\u3051\u306b\u3082\u540c\u69d8\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u308f\u3056\u308f\u3056\u300cmaster \u30d6\u30e9\u30f3\u30c1\u3060\u3068\u300d\u3068\u66f8\u3044\u305f\u901a\u308a\u3001\u73fe\u5728\u306e\u6700\u65b0\u30ea\u30ea\u30fc\u30b9\u3067\u3042\u308b v1.59.2 \u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u6b21\u306e\u30ea\u30ea\u30fc\u30b9\u306e v1.60.0 \u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3053\u3068\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002\u904e\u53bb\u306e\u30ea\u30ea\u30fc\u30b9\u9593\u9694\u3092\u9451\u307f\u308b\u306811\u6708\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<hr \/>\n<p>\u3061\u306a\u307f\u306b\u4ed6\u306b\u8abf\u3079\u305f\u7bc4\u56f2\u3060\u3068\u3001<a href=\"https:\/\/min.io\/\">MinIO<\/a> \u306e cli \u3067\u3042\u308b <a href=\"https:\/\/min.io\/docs\/minio\/linux\/reference\/minio-mc.html\">mc<\/a> \u306f\u60dc\u3057\u3044\u3068\u3053\u308d\u307e\u3067\u884c\u3063\u3066\u3044\u3066\u3001<\/p>\n<ul>\n<li><code>mc cp<\/code> \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u306f\u6642\u523b\u3092\u6307\u5b9a\u3067\u304d\u308b (<code>--rewind<\/code>) \u304c rsync \u7684\u306a\u52d5\u4f5c\u306f\u3067\u304d\u306a\u3044\u3002<\/li>\n<li><code>mc mirror<\/code> \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u306f rsync \u7684\u306a\u52d5\u4f5c\u306f\u3067\u304d\u308b\u304c\u6642\u523b\u3092\u6307\u5b9a\u3067\u304d\u306a\u3044\u3002<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u6b8b\u5ff5\u306a\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3069\u3046\u3057\u3066\u3053\u3046\u306a\u3063\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305a\u3001Amazon S3 \u3042\u308b\u3044\u306f\u4e92\u63db\u30b5\u30fc\u30d3\u30b9\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u73fe\u5728\u306e\u72b6\u614b\u3092 rsync \u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u306e\u306f\u3001aws-cli \u306e aws s3 sync \u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-7963","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7963"}],"version-history":[{"count":8,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7963\/revisions"}],"predecessor-version":[{"id":7971,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7963\/revisions\/7971"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7963"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}