<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tapira</author_name>
  <author_url>https://blog.hatena.ne.jp/tapira/</author_url>
  <blog_title>カメニッキ</blog_title>
  <blog_url>https://tapira.hatenablog.com/</blog_url>
  <categories>
    <anon>LinuxCommand</anon>
  </categories>
  <description>冗長化している2台のサーバで、同一のファイルを配置しています。 それらのファイルが全て一致しているか比較する方法を調査した結果です。 前提 対象とするサーバをA・Bとする 対象とするディレクトリを/hoge/fugaとする 方法 md5sumのハッシュ値を使用します Aでハッシュ一覧を作成し、Bに転送 # cd /hoge/fuga # find . -type f -exec md5sum {} \; &gt; /tmp/AcheckSum.hash # scp /tmp/AcheckSum.hash user@B:/tmp BでAから転送されたハッシュ値を元に比較 # cd /hoge/fuga…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftapira.hatenablog.com%2Fentry%2F2015%2F03%2F11%2F100414&quot; title=&quot;Linuxで対象ディレクトリ内のファイルが一致するか、再帰的に比較する - カメニッキ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-03-11 10:04:14</published>
  <title>Linuxで対象ディレクトリ内のファイルが一致するか、再帰的に比較する</title>
  <type>rich</type>
  <url>https://tapira.hatenablog.com/entry/2015/03/11/100414</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
