Redian新闻
>
How to gzip a directory directly ?
avatar
How to gzip a directory directly ?# Unix - 噫吁兮,危乎高哉
I*A
1
I have a huge directory.
I want to archive it.
I used tar:
tar -cvf Myproject.tar Myproject
then used gzip:
gzip Myproject.tar
to generate .gz file.
But, the intermediate myproject.tar is too big, like 400GB.
I want to know how I can compress the directory directly.
Because the file is very huge, I doubt if tar pipe gzip works.
I saw there is tar -z can compress directly when we tar it. But my ksh does
not have this -z option.
avatar
c*t
2
Get a new gnu tar so you can use
tar cfz ...

【在 I**A 的大作中提到】
: I have a huge directory.
: I want to archive it.
: I used tar:
: tar -cvf Myproject.tar Myproject
: then used gzip:
: gzip Myproject.tar
: to generate .gz file.
: But, the intermediate myproject.tar is too big, like 400GB.
: I want to know how I can compress the directory directly.
: Because the file is very huge, I doubt if tar pipe gzip works.

avatar
I*A
3
What do you mean ? to let the system administrator upgrade the system so the
'z' option can work?
avatar
c*t
4
You can compile an updated version of tar yourself (or ask the admin).

the

【在 I**A 的大作中提到】
: What do you mean ? to let the system administrator upgrade the system so the
: 'z' option can work?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。