LoginSignup
0
0

[Bash] cp -r や rsyncした後にコピー元とOwner、Group、Permissionが一致しているか確認する

Posted at

シェルの種類

bash

利用用途

cpコマンドやrsyncコマンドを実行した後に

  • ファイルがコピーされているか
  • Owner、Group、Permissionがコピー元と同じか

を確認する時に叩くコマンド

利用シーン

NFSなどの移設

コマンド

$ bash
$ diff <(cd /{path}/{to}; find ./hoge/ | sort | xargs stat -c %n:%a:%U:%G) <(cd /{path}/{to}; find ./fuga/ | sort | xargs stat -c %n:%a:%U:%G)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0