Nov 03, 2025 - 03:55 PMDeutsch | English
Hello unlogged user [ Register | Log in ]

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
geoback
26 Post subject: bzip2 - back.tar | split -b 4000m - back.tar.bz2.  PostPosted: Sep 18, 2006 - 12:06 PM



Joined: Mar 04, 2005
Posts: 34

Hoffe hier bei Scripten richtig zu sein
Smilie

Folgender Problematik kann ich nicht Herr werden:

die Datei back.tar ist ca. 11 GB groß. back.tar soll auf DVD gebrannt werden. Deswegen hoffte ich mit folgendem Kommando die Lösung zu finden:

bzip2 - back.tar | split -b 4000m - back.tar.bz2.

Es wird leider nur eine Datei erstellt, also nicht wie erhofft, zwei Dateien (die erste ca. 4 GB groß)

Was mache ich da falsch?
 
 View user's profile Send private message  
Reply with quote Back to top
Hack-o-Master
Post subject:   PostPosted: Sep 18, 2006 - 03:46 PM



Joined: Apr 05, 2005
Posts: 499
Location: Bielefeld <:-P
Versuch mal:
komprimieren
Code:
bzip2 -c back.tar | split -b 4000m - back.tar.bz2.
dekomprimieren (sofern alle teile Zugreifbar sind)
Code:
cat back.tar.bz2.*|bunzip2 -cd >back.tar


Wenn Geschwindigkeit beim komprimieren eine Rolle spielt nimm gzip/gunzip statt bzip2 (Wesentlich schneller, aber Archiv etwas grösser)

Ähnliches hatte ich auf in den Skripten (Commercial/Eigenwerbung... Cool ) backup.sh / restore.sh angewandt.

mfg. Hack-o-Master

_________________
sidux2007-02 64Bit, Kernel 2.6.23rc..(Crypto-root), X.org 7.3, KDE 3.5.7
http://bernd-das-brot.de.be | Gästebuch , certified B.O.F.H.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
geoback
Post subject:   PostPosted: Sep 19, 2006 - 10:25 AM



Joined: Mar 04, 2005
Posts: 34

Danke, hat so gut funktioniert. Es entstehen Dateien mit der Endung backtar.bz2.aa - tar.bz2.ab
Frage: Die zweite Datei wird im konqueror nicht als tar.bz2 Archiv erkannt. Ist das ein Probelem?

_________________
running KANOTIX EASTER RC4 on Sony tx2hp - no Dist-upgrade
Kernel 2.6.17.7-slh-up-1
 
 View user's profile Send private message  
Reply with quote Back to top
Hack-o-Master
Post subject:   PostPosted: Sep 19, 2006 - 12:19 PM



Joined: Apr 05, 2005
Posts: 499
Location: Bielefeld <:-P
geoback wrote:
Frage: Die zweite Datei wird im konqueror nicht als tar.bz2 Archiv erkannt. Ist das ein Probelem?
Der Header des bzip2 - Archves befindet sich doch nur im ersten Teil, denn das Archiv wurde mittels split (einer 'Schere' Ausrufezeichen vergleichbar) durchgeschnitten...

Sofern du obigen Dekomprimierungs-Einzeiler verwendest geht das Zusammensetzen 1A.

mfg. Hack-o-Master

_________________
sidux2007-02 64Bit, Kernel 2.6.23rc..(Crypto-root), X.org 7.3, KDE 3.5.7
http://bernd-das-brot.de.be | Gästebuch , certified B.O.F.H.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.