2002年2月16日

directryごとのコピー

天気:晴れ
体重:88.5Kg

パーミッションも保存してディレクトリごとコピーする
メモ的に残していたのが、どっかに逝ってしまった。
ここにメモとして残しておこう。
tar -cf - -C srcdir . | tar xpf - -C destdir
これで、パーミッションもタイムスタンプも保存される。
ファイルの圧縮保存、解凍はこう。
tar -Z -cf(filename.tar.gz) -C srcdir . 
tar zxfp (filename.tar.gz) -C destdir

  • 1

Recent Entries

  1. directryごとのコピー

Recent Comments

Creative Commons License
This weblog is licensed under a Creative Commons License.