Questions tagged [tar]

An archiving program for storing and retrieving files as a collection with support for data compression.

An archiving program for storing and retrieving files as a collection with support for data compression. It is mainly used for compacting multiple files into single one, for easy transporting or compression.

Its name comes from Tape ARchive

2690 questions
1
vote
1 answer

Python, opening TarFile from data in a variable

I get a tar file in the body of a http post request and I want to extract the contents without first writing the tar file to disc. The file used to be a zip file and i could do zip =…
user1622094
  • 193
  • 1
  • 1
  • 7
1
vote
1 answer

Python3 tarfile not working with gzipped tarballs

I have a freshly compiled python 3.2.3 on CentOS 6, and I'm having trouble getting the tarfile module working with the gzipped file. Python 3.2.3 (default, Sep 17 2012, 16:49:57) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2 Type "help",…
Mediocre Gopher
  • 2,274
  • 1
  • 22
  • 39
1
vote
1 answer

Access a large file in a zip archive with HTML in a python-webkit WebView without extracting

I apologize for any confusion from the question title. It's kind of a complex situation with components that are new to me so I'm unsure of how to describe it succinctly. I have some xml data and an image in an archive (zip in this case, but could…
Erik Youngren
  • 783
  • 1
  • 6
  • 15
1
vote
1 answer

PHP tar returning path back to root

I'm running the following command to create a backup tarball of a file or folder: system("tar -pczf /home/var/www/temp /home/var/www/folder/to/backup"); It works great, but when I extract I get the path all the way back to the root of the server…
Fluidbyte
  • 5,162
  • 9
  • 47
  • 76
1
vote
4 answers

Linux: copy one file from several directories

I have a situation where I want to copy a specific file "transaction.log" from thousands of directories under linux and build a tar file containing those same specific files. Example: I have thousands of directories under…
user981116
  • 55
  • 4
  • 10
1
vote
2 answers

Parsing rsync output

I am trying the parse the progress bar output of rsync command. I want to use the percentage data from the rsync progress bar and display it on a dialog gauge utility. The rsync progress bar data looks like: 32768 0% 0.00kB/s 0:00:00 …
Sai
  • 377
  • 1
  • 5
  • 19
1
vote
1 answer

How do I expand a compressed tar file in Android 2.2 or higher

Given a compressed tar file (created by gzip) on the SDCard I need to expand/uncompress it within an Android app. The tar file contains pictures, text, and subfolders with files under the subfolders. I want the expansion/decompression to maintain…
user1603721
  • 188
  • 3
  • 12
1
vote
1 answer

tar file number limitation

Does gzip has file limitation Thanks ER
user552120
1
vote
1 answer

backuppc method tar no files dumped for share

Ubuntu 11.10 Server; backuppc 3.2.1 Running cgi-bin version Installed as user www-data to avoid issues with perl and apache2 with user backuppc ssh works fine to servers on LAN being backed up The following commandline is reported in the failure…
Mark Richards
  • 187
  • 2
  • 13
1
vote
1 answer

Android build system: How to include prebuilt files from a .tar file?

I'm building a customized Android system (JellyBean). I've got a project (from the upstream) containing a .tar file which should be untar'd at the build time and it's content should be copied to a certain place in the resulting directory tree. How…
LiMar
  • 2,822
  • 3
  • 22
  • 28
1
vote
1 answer

Opening .tgz files in C

I'm trying to copy a .tgz file into memory and sending it elsewhere. Using fopen I get a NULL pointer which tells me that a .tgz file isn't a binary file, but I was wondering if it is even possible to open, buffer, and pass a .tgz file using C…
ardent
  • 2,453
  • 1
  • 16
  • 15
1
vote
1 answer

How do I put header & data in the Tar file format?

I am trying to write a pure C++ tar file manipulation library. Can one simply put the tar headers followed by the data, with nothing special in between, I have looked through Wikipedia, and the gnu site and have come up with everything I need except…
alexmherrmann
  • 1,055
  • 2
  • 9
  • 17
1
vote
2 answers

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: …
Seperman
  • 4,254
  • 1
  • 28
  • 27
1
vote
1 answer

erl_tar can't extract files made with make_tar

I'm putting a release file together, which seems to work fine 1> systools:make_tar("rel/project-1.0"). ok at that point, I get the expected file at rel/project-1.0.tar.gz, however, trying to extract it errors for some reason 2>…
Inaimathi
  • 13,853
  • 9
  • 49
  • 93
1
vote
1 answer

How to untar all files from archive into one single folder, regardless from their folder nesting?

In one of my applications a user can upload images and archives (ZIP, RAR). When an archive is uploaded, it should be extracted. However, some users will upload archives that contain files in a variety of subfolders (within the archive) What i am…
SquareCat
  • 5,699
  • 9
  • 41
  • 75