Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gzip paramter bei Verwendung von tar -cvzf
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Mon Jan 12, 2009 8:24 am    Post subject: gzip paramter bei Verwendung von tar -cvzf Reply with quote

Hallo zusammen,

kann ich eigentlich gzip Parameter mitgeben, wenn ich es über tar aufrufe?
Ich kann laut man-page zwar tar einen Parameter -[0-7] mitgeben, wobei das die Schreibdichte eines Laufwerks festlegen soll.
Ich würde gern gzip mit der Option -1 für die schnelle Kompression verwenden.

Wenn man Dimensionen von >10 <100 GB komprimieren will dauerts halt schon ewig.

Danke im Voraus.
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Mon Jan 12, 2009 9:10 am    Post subject: Reply with quote

Ich weiss nicht ob das direkt geht, aber im Zweifelsfall macht tar ja auch nichts anderes als:

tar cv <inputfiles> | gzip -1 > <outputfile>.tar.gz
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Mon Jan 12, 2009 9:18 am    Post subject: Reply with quote

Anarcho wrote:
Ich weiss nicht ob das direkt geht, aber im Zweifelsfall macht tar ja auch nichts anderes als:

tar cv <inputfiles> | gzip -1 > <outputfile>.tar.gz


ok, dass ist natürlich ne Möglichkeit. Danke !
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Tue Jan 13, 2009 7:15 pm    Post subject: Reply with quote

Ich benutze für solche Sachen den Parameter --use-compress-programm und setze das auf ein Script, das gzip mit den entsprechenden Optionen aufruft. Die andere Alternative ist die Benutzung von star, das die Variable STAR_COMPRESS_FLAG kennt.
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Wed Jan 14, 2009 8:37 am    Post subject: Reply with quote

gzip kennt auch die Umgebungsvariable GZIP (siehe man gzip) - vielleicht lässt die sich auch bei Verwendung von tar zum Steuern nutzen.
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum