{"id":15033,"date":"2023-09-13T07:25:05","date_gmt":"2023-09-12T22:25:05","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=15033"},"modified":"2023-09-13T07:30:56","modified_gmt":"2023-09-12T22:30:56","slug":"linux%e3%81%a7%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e3%81%ae%e5%86%85%e5%ae%b9%e3%82%92%e5%90%8c%e6%9c%9f%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88rsync%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/15033","title":{"rendered":"Linux\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u540c\u671f\u3059\u308b\uff01\uff08rsync\uff09"},"content":{"rendered":"<p>Linux\u3067\u3001rsync\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u540c\u671f\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>\u540c\u671f\u5143\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3]; title: ; notranslate\" title=\"\">\r\n$ mkdir docs\r\n$ touch docs\/text1.txt\r\n$ ls -lR docs\r\ndocs\/:\r\ntotal 0\r\n-rw-r--r--. 1 usradmin usradmin 0 Sep 13 07:10 text1.txt\r\n<\/pre>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u306e\u30b3\u30d4\u30fc\u3092\u884c\u3046\uff01<\/h2>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306f\u3001\u300c-a\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u300c-v\u300d\u306f\u3001\u8a73\u7d30\u8868\u793a\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,9]; title: ; notranslate\" title=\"\">\r\n$ rsync -av docs backup\r\nsending incremental file list\r\ncreated directory backup\r\ndocs\/\r\ndocs\/text1.txt\r\n\r\nsent 145 bytes  received 68 bytes  426.00 bytes\/sec\r\ntotal size is 0  speedup is 0.00\r\n$ ls -lR backup\r\nbackup:\r\ntotal 0\r\ndrwxr-xr-x. 2 usradmin usradmin 23 Sep 13 07:10 docs\r\n\r\nbackup\/docs:\r\ntotal 0\r\n-rw-r--r--. 1 usradmin usradmin 0 Sep 13 07:10 text1.txt\r\n<\/pre>\n<h2>\u8ffd\u52a0\u5206\u306e\u307f\u30b3\u30d4\u30fc\u3059\u308b\uff01<\/h2>\n<p>\u300c-u\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u8ffd\u52a0\u5206\u306e\u307f\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,9]; title: ; notranslate\" title=\"\">\r\n$ touch docs\/text2.txt\r\n$ rsync -auv docs backup\r\nsending incremental file list\r\ndocs\/\r\ndocs\/text2.txt\r\n\r\nsent 170 bytes  received 39 bytes  418.00 bytes\/sec\r\ntotal size is 0  speedup is 0.00\r\n$ ls -lR backup\r\nbackup:\r\ntotal 0\r\ndrwxr-xr-x. 2 usradmin usradmin 40 Sep 13 07:15 docs\r\n\r\nbackup\/docs:\r\ntotal 0\r\n-rw-r--r--. 1 usradmin usradmin 0 Sep 13 07:10 text1.txt\r\n-rw-r--r--. 1 usradmin usradmin 0 Sep 13 07:15 text2.txt\r\n<\/pre>\n<h2>\u5727\u7e2e\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30d4\u30fc\u3059\u308b\uff01<\/h2>\n<p>\u300c-z\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u5727\u7e2e\u3057\u3066\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u5727\u7e2e\u306f\u3001\u30b3\u30d4\u30fc\u4e2d\u306e\u307f\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,5,12]; title: ; notranslate\" title=\"\">\r\n$ dd if=\/dev\/zero of=docs\/text3.txt bs=1M count=100\r\n100+0 records in\r\n100+0 records out\r\n104857600 bytes (105 MB, 100 MiB) copied, 0.0282156 s, 3.7 GB\/s\r\n$ rsync -auzv docs backup\r\nsending incremental file list\r\ndocs\/\r\ndocs\/text3.txt\r\n\r\nsent 3,406 bytes  received 39 bytes  2,296.67 bytes\/sec\r\ntotal size is 104,857,600  speedup is 30,437.62\r\n$ ls -lR backup\r\nbackup:\r\ntotal 0\r\ndrwxr-xr-x. 2 usradmin usradmin 57 Sep 13 07:18 docs\r\n\r\nbackup\/docs:\r\ntotal 102400\r\n-rw-r--r--. 1 usradmin usradmin         0 Sep 13 07:10 text1.txt\r\n-rw-r--r--. 1 usradmin usradmin         0 Sep 13 07:15 text2.txt\r\n-rw-r--r--. 1 usradmin usradmin 104857600 Sep 13 07:18 text3.txt\r\n<\/pre>\n<h2>\u524a\u9664\u3082\u53cd\u6620\u3057\u3066\u5b8c\u5168\u540c\u671f\u3059\u308b\uff01<\/h2>\n<p>\u300c--delete\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u524a\u9664\u3082\u53cd\u6620\u3055\u308c\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u304c\u5b8c\u5168\u306b\u540c\u671f\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,9]; title: ; notranslate\" title=\"\">\r\n$ rm docs\/text3.txt\r\n$ rsync -auv --delete docs backup\r\nsending incremental file list\r\ndeleting docs\/text3.txt\r\ndocs\/\r\n\r\nsent 127 bytes  received 34 bytes  322.00 bytes\/sec\r\ntotal size is 0  speedup is 0.00\r\n$ ls -lR backup\r\nbackup:\r\ntotal 0\r\ndrwxr-xr-x. 2 usradmin usradmin 40 Sep 13 07:20 docs\r\n\r\nbackup\/docs:\r\ntotal 0\r\n-rw-r--r--. 1 usradmin usradmin 0 Sep 13 07:10 text1.txt\r\n-rw-r--r--. 1 usradmin usradmin 0 Sep 13 07:15 text2.txt\r\n<\/pre>\n<h2>\u30ea\u30e2\u30fc\u30c8\u306e\u30de\u30b7\u30f3\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u540c\u671f\u3059\u308b\uff01<\/h2>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ rsync -auv --delete docs usradmin@dpc001p1:\/home\/usradmin\/backup\r\nThe authenticity of host 'dpc001p1 (10.1.1.1)' can't be established.\r\nED25519 key fingerprint is SHA256:wkIZB1feFgnpu4wuhd20fhHalln6ykab+FTgEUoJH3A.\r\nThis key is not known by any other names\r\nAre you sure you want to continue connecting (yes\/no\/&#x5B;fingerprint])? yes\r\nWarning: Permanently added 'dpc001p1' (ED25519) to the list of known hosts.\r\nusradmin@dpc001p1's password: \r\nsending incremental file list\r\ncreated directory \/home\/usradmin\/backup\r\ndocs\/\r\ndocs\/text1.txt\r\ndocs\/text2.txt\r\n\r\nsent 213 bytes  received 102 bytes  23.33 bytes\/sec\r\ntotal size is 0  speedup is 0.00\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>rsync\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u306e\u540c\u671f\u3092\u5bb9\u6613\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u306e\u30de\u30b7\u30f3\u3078\u3082\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u306e\u540c\u671f\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3082\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8020\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\uff01<\/div><div class=\"substr\">Linux\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067\u3001rsync\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u540c\u671f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[201],"tags":[282,1157,25,496,1156],"class_list":["post-15033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-files","tag-linux","tag-rsync","tag-25","tag-496","tag-1156"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=15033"}],"version-history":[{"count":12,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15033\/revisions"}],"predecessor-version":[{"id":15068,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15033\/revisions\/15068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=15033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=15033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=15033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}