tarコマンドでディレクトリをまるごとコピーする

2016年5月8日
1 分

次のようにすると、ディレクトリをまるごとコピーできる。

$ tar cf - . | ( cd /path/to/destdir; tar xvpf - )