| 43 | | |
| 44 | | * [http://centos-server.blogspot.com/2008/04/sparse.html CentOS&Xenサーバ導入メモ: Sparseファイルの取り扱い方法] |
| 45 | | > * コピー |
| 46 | | > * # cp --sparse=auto [コピー元] [コピー先] |
| 47 | | > * # rsync -avS [コピー元] [コピー先] |
| 48 | | > * GNU TARで圧縮/解凍 |
| 49 | | > * 圧縮 # tar zcSvf [書庫ファイル] [格納するファイル] |
| 50 | | > * 解凍 # tar zxSvf [書庫ファイル] |
| 51 | | > * 通常ファイルをSparseファイルにする |
| 52 | | > * # cp --sparse=always [コピー元] [コピー先] |
| 53 | | > * Sparseファイルを通常ファイルに戻す |
| 54 | | > * # cp --sparse=never [コピー元] [コピー先] |
| 55 | | * wikipedia:Sparse_file |
| 56 | | > Pipeing |
| 57 | | > {{{ |
| 58 | | > cat somefile | cp --sparse=always /proc/self/fd/0 new-sparse-file |
| 59 | | > }}} |