tarのサイズ制限(GNUは無制限)
linuxのtarはGNUなので以下のURLの文書を参照する。
https://www.gnu.org/savannah-checkouts/gnu/tar/manual/tar.html#Operations
The default format for GNU tar
is defined at compilation time. You may check it by running tar --help
, and examining the last lines of its output.
[root@Oracle-IIS1171 ~]# tar --help
使用法: tar [オプション...] [ファイル]...
GNU `tar'
...
「この」tar の規定値:
--format=gnu -f- -b20 --quoting-style=escape --rmt-command=/etc/rmt
--rsh-command=/usr/bin/ssh
tar圧縮するには:
tar -cvzf /tmp/work.tar.gz /work
tar対象フォルダを除外するには:
tar --exclude /work/image/*.gz --exclude /work/image/is-suite -cvzf /tmp/work.tar.gz /work
tar展開するには:
cd <展開先フォルダ>
tar -cvxf /tmp/work.tar.gz
コメント
コメントを投稿