Questions tagged [bzip2]

bzip2 is a Unix command used for compression and decompression of files. The main advantage of bzip2 is that it has a high compression ratio with reasonable speed.

bzip2 one of the most widely used free compression programs for the terminal.

It typically compresses files to within 10% to 15% of the best available techniques, whilst being around twice as fast at compression and six times faster at decompression.

The current version is 1.0.6, released 20 Sept 2010.

327 questions
0
votes
0 answers

Most efficient qsub with limited time

I am working on a cluster where I submit jobs through the qsub engine. I am granted a maximum of 72h of computational time at once. The output of my simulation is a folder which typically contains about 1000 files (about 10 Gb). I copy my output…
Manfredo
  • 1,760
  • 4
  • 25
  • 53
0
votes
1 answer

Interleaving bzip2 and non-bzip2 data

I am looking at making a file format that interleaves two types of chunks of raw bytes. One chunk will contain a block of bzip2-compressed data, which has a header containing the usual bzip2 magic number (BZh9). The second chunk will consist of…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
0
votes
1 answer

Get distance read into a bz2 compressed file in python

I've got a big (many GB) .bz2 compressed file, which I am reading in using python's bz2.open() function. I want to provide a status update about how much of the file is left to read. I can get the file size from the file system, and the number of…
user2667066
  • 1,867
  • 2
  • 19
  • 30
0
votes
1 answer

Is there any advantage of doing .gz.bz2?

I notice many of the files generated in my team have .gz.bz2 extensions. These are pure text files. The goal is to save disk space. I tried an experiment where I did gzip and gzip + bzip2 on the same set of files: $ du -h pat0/* 1.6M …
user4979733
  • 3,181
  • 4
  • 26
  • 41
0
votes
0 answers

Installing bzip2/bunzip2 in wampserver

I'm working on importing some large mysql database backup files that I downloaded from my live server into my local wampserver. The files were compressed in bunzip2 format and have bz2 file extensions. I used to have bunzip setup for my old…
Seibertron
  • 33
  • 1
  • 6
0
votes
1 answer

PHP: I don't think I can re-compile PHP, what should I do to use the bzip2 library?

I am on shared hosting, and I noticed the PHP does not include bzip2. It seems I would have to re-compile PHP inorder to use this. I don't think shared hosting allows this, so is there any alternative to my situation or bzip2?
Strawberry
  • 66,024
  • 56
  • 149
  • 197
0
votes
1 answer

Compress full directory with bzip2 into a tar file whose name depends on the current date

I'm trying to compress a directory but I want to change the tar file name to have the current date. The problem is that tar doesn't accept: #!/bin/bash tar -cvjSf $(date +%d/%m/%y.%HH:%MM)home_backup.tar.bz2 /home I want to make a compressed File…
0
votes
0 answers

Decompress php zlib or bz2 with python

I've already tried zlib_encode($data,15);, zlib_encode($data,31); and bzcompress($data,9); writing result into file. Everything looks good but I'm not able to decompress any of them with python. Bz2 gives me OSError: Invalid data stream, gzip gives…
desu
  • 455
  • 2
  • 18
0
votes
2 answers

compress dicom files to be sent to a remote server

I'm looking for a way to compress dicom files and send them to a remote server (nodejs in my case) I tried bz2 compression and it seems to work very well on large dicom files (tested it with 10 Mb file which gave me a 5Mb compressed file). When it…
user3711521
  • 285
  • 5
  • 14
0
votes
0 answers

Not able to install BZIP2 1.0.6 version in Red Hat server

I am trying to install the latest version of bzip2 in an RHEL server. The current version of bzip2 installed is 1.0.5 and is not useful for my purposes. The 1.0.6 version of bzip2 is available from http://www.bzip.org/downloads.html Commands tar…
j1897
  • 1,507
  • 5
  • 21
  • 41
0
votes
1 answer

How can I zip a file using Cygwin and bzip2?

I have downloaded Cygwin and the package to zip files (bzip2) but I cant figure out how to use its command to simply zip a file to another location. All I want to do is something like: bzip2 myfile somelocation
swag antiswag
  • 349
  • 1
  • 4
  • 12
0
votes
1 answer

Pig script to compress and decompress the hdfs data in bzip2

How to compress hdfs data to bzip2 using pig such that on decompression it should give the same dir structure which it had initially.I am new to pig. I tried to compress with bzip2 but it generated many files due to many mappers being spawned and…
Ramish
  • 29
  • 9
0
votes
0 answers

Allocating more memory for fopen

I have a large binary file that is read and compressed with bzip2. I am trying to decrease the compression time, as it's taking around 1min 30sec to complete. One thing I wanted to try was to expand the size of the buffer for fopen. However, I am…
user0000001
  • 2,092
  • 2
  • 20
  • 48
0
votes
2 answers

Mercurial Web Server - Why am I downloading a .bz2.tar file instead of a .tar.bz2 file?

It is my understanding that a .tar file contains directories and other files, and a .bz2 is a file that's compressed with bzip2 compression. Therefore, most tarballs with bzip2 compression end in: .tar.bz2 Which is bzip2 compression applied to a…
pcd6623
  • 706
  • 2
  • 9
  • 15
0
votes
1 answer

Check compressed archive for corruption

I am creating compressed archives with tar and bzip2 using jarchivelib which utilizes org.apache.commons.compress. try { Archiver archiver = ArchiverFactory.createArchiver(ArchiveFormat.TAR, CompressionType.BZIP2); File archive =…
bennos
  • 313
  • 4
  • 17