Search code examples
pythonarchivetarvolume

python multi volume tar


I'm trying to create multi volume tar file in bzip2 compression. I'm compressing some really big files. What should I do?

This works, except doesn't do multi volume thing:

out = tarfile.open('../temp/tarfile_add.tar', mode='w:bz2')
try:
    out.add("gooz/big_dude.avi")
finally:
    out.close()

Thanks, Sep


Solution

  • There is no such thing as a "multi volume tar"; there is nothing in the tar specification regarding spanning tar files. You will need to split the file separately from generating the archive.