I**A 发帖数: 96 | 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. |
c*****t 发帖数: 1879 | 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.
|
I**A 发帖数: 96 | 3 What do you mean ? to let the system administrator upgrade the system so the
'z' option can work? |
c*****t 发帖数: 1879 | 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?
|