cp コマンドでディレクトリごとファイルをコピーする

メモ。

$ cp --parent foo/bar/*.json target/

コピー元のディレクトリ階層(foo/bar/)を維持した状態でコピーされる。