| | 8 | |
| | 9 | = sparse file = |
| | 10 | * [http://centos-server.blogspot.com/2008/04/sparse.html CentOS&Xenサーバ導入メモ: Sparseファイルの取り扱い方法] |
| | 11 | > * コピー |
| | 12 | > * # cp --sparse=auto [コピー元] [コピー先] |
| | 13 | > * # rsync -avS [コピー元] [コピー先] |
| | 14 | > * GNU TARで圧縮/解凍 |
| | 15 | > * 圧縮 # tar zcSvf [書庫ファイル] [格納するファイル] |
| | 16 | > * 解凍 # tar zxSvf [書庫ファイル] |
| | 17 | > * 通常ファイルをSparseファイルにする |
| | 18 | > * # cp --sparse=always [コピー元] [コピー先] |
| | 19 | > * Sparseファイルを通常ファイルに戻す |
| | 20 | > * # cp --sparse=never [コピー元] [コピー先] |
| | 21 | * wikipedia:Sparse_file |
| | 22 | > Pipeing |
| | 23 | > {{{ |
| | 24 | > cat somefile | cp --sparse=always /proc/self/fd/0 new-sparse-file |
| | 25 | > }}} |