An archive file format (and the program that reads it) commonly used on Unix and Linux.

learn more… | top users | synonyms

13
votes
3answers
46k views

How to create tar archive split into, or spanning, multiple files?

According to this page, one can let tar create a tar archive "split" into 100 Mb files: tar -c -M --tape-length=102400 --file=disk1.tar largefile.tgz The problem is that this command will ...
1
vote
1answer
20 views

Error messages when extracting a .tar.bz2 in Ubuntu

While extracting a .tar.bz2 file using the command tar xjf git.tar.bz2 I received error messages that shows Cannot hard link to and Cannot create symlink to What will be the reason ...
0
votes
2answers
40 views

Can a tar.gz file contain malicious code? Is a Mac vulnerable to such a tar.gz?

Can a tar.gz file contain malicious code that is similar to ZIP file? On a Mac particularly?
20
votes
7answers
105k views

How to open a .tar.gz file in Windows?

I need to open a file that sadly is only available in the .tar.gz file format and I am using Windows 7. I can unzip the file using 7-zip but after that I still have a .tar file that I can't open in ...
2
votes
2answers
71 views

What is the correct MIME type for a tar.gz file?

What is the correct MIME type for a tar.gz file? I've searched around and found several values being used, including: application/x-gzip application/x-gtar application/x-tgz But I could find no ...
0
votes
0answers
20 views

GPG with tar.gz at the same time without the full path being packed

I would like to compress and encrypt a folder: tar -cz "/path/to/the/folder/" | gpg --encrypt --passphrase "password" --recipient "mail@mail.mail" > "/destination/package.tar.gz.gpg" When I ...
0
votes
0answers
6 views

tar failing to create symlink on samba mounted share

We have a perl build script which, as part of it's operation, untar's a few tarballs. One of those, openssl, contains some symlinks (libssl.so points to libssl.so.1.0.0). I am trying to run this on ...
1
vote
0answers
18 views

view zip file content in tree command style

I am seeing the zip file content using unzip -l files.zip | less but it outputs in ls style , is it possible to to display output in tree command style
0
votes
0answers
14 views

efficiently append to large tar archive

I thought that tar was meant to write out on linear media, eg. tape in the beginning. So appending further files to an existing archive should only touch it's end I guessed. However, appending a ...
0
votes
2answers
26 views

To open lrzip-compressed in Debian 8.1

I downloaded the SageMath jessie package here but I cannot open it. I get the warning in ArchiveManager Could not open this file type There is no command installed for Tar archive (lrzip-compressed) ...
0
votes
0answers
8 views

Piping back resulting stream from split remote commands

I'm trying to perform the following: (1) generating data on my local workstation (2) piping this data (huge amount!) once to my remote speedy server (3) performing two separate operations on this ...
0
votes
2answers
607 views

7-zip archive with hard links?

I see that tar respects hard links $ ln clonezilla.iso test.iso $ tar cfvvJ archive.tar.xz *.iso -rw-r--r-- Steven 111149056 2012-03-25 07:34 clonezilla.iso hrw-r--r-- Steven 0 2012-03-25 ...
0
votes
0answers
5 views

Why am I encountering 'Error decoding stream footer' when decompressing using `pixz`?

I compressed a file using tar -pcv input_dir | pixz 8 -p8 > output.tar.xz. When I try to decompress or list the files using pixz -d and pixz -l i encounter the error Error decoding stream footer. ...
0
votes
1answer
15 views

decompress multiples pdf files without using tmp files?

I have more than 100.000 pdf files I want to decompress it, then recompress theme all in one archive file to save space. all i found is: ls | xargs -P 4 -n 1 -I {} qpdf --stream-data=uncompress {} ...
1
vote
1answer
103 views

tar --remove-files behavior: delete after every file or after completion?

Pretty much in the title. I have a box with very little disk space left and lots of data. I want to add all of the files into a tar, deleting them as I go because there is clearly not enough space to ...
0
votes
1answer
22 views

I want to take tar backup of the directory whose name will be variable

I am trying to write a shell script in which I want to take tar backup of the folders which are formed on daily basis. For example my parent directory name is "log" and under this directory a ...
0
votes
0answers
22 views

Tar progress per file with pv for multiple files/folders at a time?

I've been using this one line command that I found on another post here and it works great for one folder at a time. This is the command: tar -cf - /opt/folder1 | pv -s $(du -sb /opt/folder1 | awk ...
2
votes
2answers
103 views

Chromium: prevent unpacking tar.gz

The latest Chrome and Chromium seems to unpack .tar.gz files automatically for me on OS X and Linux. When using wget with the same URL, it shows: $ wget http://mydomain/dir/file.tar.gz ... HTTP ...
11
votes
3answers
6k views

Is it possible to mount a .tar file?

The only result of any import when I searched for this was from 2001. In the intervening decade, have any tools/methods for mounting a tar file as a filesystem (perhaps utilizing fuse) been created? ...
8
votes
5answers
27k views

How do I password protect a .tgz file with tar in Unix?

I'm using the Unix tar command as follows to tar up a directory and its files: tar cvzf fileToTar.tgz directoryToTar Is there a way to password protect the .tgz file? I've created ...
1
vote
2answers
63 views

Concatenate multiple tar files in one command

I receive anywhere from 4 to 100 very large tar (~20GB) archive files everyday. I have been concatenating them in the past by looping through each of the archives I see on the file system and doing ...
2
votes
1answer
55 views

tar performance writing to disk

When writing to disk (SATA) I've noticed tar seems to have a large performance hit. I'm trying to copy a, relatively, large .dmg file (556MB) from my client (OSX) across my local network as part of a ...
0
votes
0answers
36 views

Composer Install .tar.gz

Trying to install node.js via composer (for automation). "repositories": [ "type": "package", "package": { "name": "nodejs/nodejs", "version": "0.12.6", "dist": { ...
0
votes
1answer
35 views

How to tar a file whose name starts with -

I want to tar a file whose name id : -i_jkhv34 but I am getting an error : tar: invalid option -- '_' is there any way to do so?
15
votes
6answers
13k views

.tar files without directory structure

I'm .taring some files with the path example/super_user/Output.*. The resulting .tar looks like this: + example + super_user - Output.zip - Output.xml - Output.txt ...
2
votes
3answers
83 views

How to make a local tar file of a remote directory

This link describes how to copy tarred files to minimise the amount of date sent over the network. I am trying to do something slightly different. I have a number of remote files on different ...
1
vote
1answer
40 views

Is there any limit on number of file name we can pass in tar

I am creating a tar and untar it at other location using: $ tar -C sourcedir -cf - . | tar -C targetdir -xpf - but it fails like thisError I am getting is :Argument list too long - tar, when I am ...
0
votes
4answers
94 views

How to open tar gz file created using tar piped to gzip

I wanted to generate a tar gz file with the highest compression level, and I followed the solution from http://superuser.com/a/546509/461740: tar cv /path/to/directory | gzip -9 > file.tar.gz ...
0
votes
0answers
746 views

Installing Eclipse for linux (64 bit)

So I am trying to download the latest version of eclipse from the link provided by eclipse.org I am using Ubuntu 14.04 64 bit. There is a package available in the software repositories, but it is ...
7
votes
2answers
7k views

How to tar/untar the output on the fly

What is the idiomatic way to do the following tar to stdout read this tar output from stdout and extract to some other folder. My solution is tar --to-stdout .. | tar -C somefolder -xvf - But ...
1
vote
1answer
34 views

Halting tar after locating entry or EOF in an actual tape archive

I've just been handed a pile of LTO-5s and a tape library, and the exciting task of extracting a subset of files. Order of magnitude is 60 tapes from said pile, around 10,000 files of 70,000 per tape ...
7
votes
5answers
10k views

Extract file and folders with specified permissions

I pack a folder with lot of sub-folders and files in Windows with 7zip, upload to VPS and then run the command: tar -xvzf file.tar.gz then all unpacked files and folders have permissions of 777. ...
1
vote
1answer
53 views

Linux Mint 17.1 tar backup error

I've used the below script successfully with ubuntu 12.04. Now I did a fresh install to Linux mint 17.1 and I can't get the tar backup script to work no more. it gives an error: Here's the script, ...
0
votes
1answer
60 views

How to mount a encrypted tar file in Linux?

Let us imagine I have encrypted my tar file with gpg as we can see here but I want to mount that with archivemount (e.g.: answer) without holding the unencrypted file on disk. Is it possible? If not, ...
1
vote
2answers
2k views

Why is this archive failing to create symlinks?

When I extract the archive Symfony_Standard_2.2.1.tgz using this command: $ tar xzf /home/tomas/downloads/Symfony_Standard_2.2.1.tgz I always get the errors: tar: doctrine.php: Cannot create ...
1
vote
1answer
33 views

Creating a tar archive from a file list AND removing full path

I'm trying to combine two options for creating a tar archive but they don't work well together. I don't know what's the problem. I use : tar -C /var/www/website html -cvzf html.tgz -T ...
0
votes
1answer
29 views

How to .tar multiple text files

I have multiple text files in a folder. I must tar them in a single tar-file. I am passing (iterate) the file names through a variable. When I do that only the first file gets tarred. Here is the ...
44
votes
7answers
16k views

Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux

When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors: tar: Ignoring unknown extended header keyword `SCHILY.ino' tar: Ignoring unknown extended ...
2
votes
2answers
7k views

Extracting a *.tar.bz2 file?

I always used to use this command to extract files from a bzip2 tar ball: tar xjvf file.tar.bz2 But right now on Ubuntu 14.04, I get this error: tar: Conflicting compression options Try 'tar ...
1
vote
2answers
57 views

Backing up linux server on ntfs harddrive

I'm looking for a way to backup my debian server. For the data partition I have a solution using rsync, the backup goes to an encrypted ntfs-drive. NTFS because I often take the drive with me to watch ...
1
vote
2answers
41 views

Is Tar a suitable archiving solution for numerous backups of data from the same folder?

I’ve recently decided to archive some data using Tar. The data consists of numerous backups of the same folder; meaning that it contains a lot of duplicates. I read that because Tar lacks an index, it ...
1
vote
3answers
5k views

How to extract multipart rar with missing parts?

I have a multipart .rar archive containing a single .tar.gz file inside it (don't ask why, that is just how it was made). I am missing a few of the parts, but do have the first part. I would like to ...
4
votes
3answers
5k views

Is it OK to copy (not clone) a git repository using basic Unix commands?

I’m pretty new to using git and was wondering if it’s ok to copy a Git repository with common UNIX commands (like cp or tar/untag), rather than through git clone. I’m in the situation where I have ...
0
votes
0answers
174 views

powershell script extract multiple .gz file

would you please help me in this , I have multiple files .tar.gz and i need to extract them , i am able to extract the File.gz incase i have one file using the below script , please let me know how ...
2
votes
1answer
30 views

continue extracting a tarball after job is killed

I am extracting a big tarball, but the job was killed in the midway. Is it possible to continue extraction without rolling back from the beginning? The command I was using was tar xvf foo.tar.gz
17
votes
2answers
32k views

Linux Bash Script, Single Command But Multiple Lines?

I have the following script I wrote by searching Google, and it backs up my Linux system to an archive: #!/bin/bash # init DATE=$(date +20%y%m%d) tar -cvpzf ...
0
votes
2answers
83 views

tar: How to remove files after packing but keep directory

I want tar to pack a complete directory tar cvjf dir.tbz dir But make it delete all files tar cvjf dir.tbz dir --remove-files However this removes ./dir too. So I tried to cd into directory ...
1
vote
3answers
36 views

Is it better to compress all data or compressed directories?

I'm archiving some projects, let's say each of them has own directory: projects |- project-1 |- project-2 |- project-3 I started compressing them as following: ==== SITUATION 1 ==== projects ...
53
votes
6answers
33k views

Is there a way to see any tar progress per file?

I have a couple of big files that I would like to compress. I can do this with for example tar cvfj big-files.tar.bz2 folder-with-big-files The problem is that I can't see any progress, so I don't ...
16
votes
1answer
19k views

create tar with multiple directories and file locations

I have some scripts and files located in various locations like: /etc/dir1 /var/www/html /home/somedir I want to make a tar file so that it copies files and folders with the location structure. ...