|
#1
| ||||
| ||||
| When using tar (or gnutar or star) does the z parameter compress the data all in one fell swoop or does it tar the directories and then zip it? The reason I'm wondering is that when I backup my OS X to my Win98 box, my 100baseT network only gets 200K throughput, so if I could compress the data that would help me out. In other words, if I execute Code: % <b>sudo gnutar cpvzf /backup/usr.tar /usr</b> BTW, has anyone gotten star to compile on OS X? It's supposed to be an ultra-fast tar. -Rob
__________________ There are only 10 kinds of people in the world: Those who understand binary, and those who don't. |
|
#2
| ||||
| ||||
| I have always needed to add the zip (.z) or gnuzip (.gz) after creating the my tar archive. gnutar never gave me all that much in the way of space savings. I had moved most of my things off my original drive to my Indy when I got my 30 GB drive. |
|
#3
| |||
| |||
| It does neither of the things you describe but it APPEARS to do #1. What it does in reality is setup a pipeline so that the gzip binary is transparently called and the final output is sent to the final destination. It is equiv to "tar cvf - <directory> | gzip -c </destination/tarball.tar.gz> |
|
#4
| |||
| |||
| Quote:
tar -cvf <dir> | gzip -c --best > <dir.tgz> which gives you the maximal compression out of gzip. |
|
#5
| |||
| |||
| Quote:
tar -cvf <dir> | gzip -c --best > <dir.tgz> which gives you the maximal compression out of gzip. |
|
#6
| |||
| |||
| --best is usually a pretty waste of time. The change in compression vs. the increased runtime isn't worth it. Just use a better/different tool such as bzip2 |
|
#7
| ||||
| ||||
| So when I pipe the tar command to gzip or bzip2 or whatever, does <em>that</em> happen on the fly or does it write the whole tar file to /tmp and <em>then</em> compress it? -Rob
__________________ There are only 10 kinds of people in the world: Those who understand binary, and those who don't. |
|
#8
| |||
| |||
| You have to use the 'z' first, because its all done in order. Example tar zxvf file.tar.gz |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| iCal's reminder option | jeepster485 | Mac OS X System & Mac Software | 0 | June 13th, 2003 11:07 PM |
| OS switching with Startup Manager (option key) | dlloyd | Mac OS X System & Mac Software | 0 | April 25th, 2003 12:03 PM |
| option click an app in the dock and.. | roachswarm | Mac OS X System & Mac Software | 1 | October 15th, 2001 05:37 PM |
| Cannot boot except with option key | llewell | Mac OS X System & Mac Software | 2 | October 25th, 2000 01:09 PM |