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

learn more… | top users | synonyms

1
vote
1answer
19 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
38 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?
0
votes
0answers
14 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
17 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
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
0answers
4 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 {} ...
0
votes
2answers
24 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
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
20 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 ...
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
2answers
99 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 ...
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
35 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?
2
votes
3answers
76 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 ...
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 ...
1
vote
1answer
51 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
59 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
1answer
32 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
28 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 ...
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 ...
0
votes
0answers
168 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
0
votes
2answers
82 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 ...
1
vote
1answer
88 views

AIX 5.3 Tar - Exctact to a different directory

I am trying to extract a untar a file to a different directory on a AIX 5.3 box tar -xvf -C /tmp/ ./MyFile.tar tar: -C: No such file or directory tar -C /tmp -xvf ./MyFile.tar Usage: tar ...
2
votes
2answers
67 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 ...
1
vote
1answer
37 views

How to untar an archive without the root folder, but keeping the full hierarchy inside it?

If I’ve got a .tar archive, and when I extract it, it gives me a single folder foo containing some more stuff, like this: foo/ something.txt another.txt bar/ something-else.txt Is there a ...
2
votes
0answers
129 views

How to count number of files in “.tar” files inside another, nested “.tar” file without extraction?

There are many solutions out there on counting of files inside a .tar file. But I have not found a solution to count number of files in .tar files inside another .tar file without extraction. For ...
0
votes
1answer
22 views

Exclude top level files from zip but include directories and contents

This is driving me nuts. All google results are for the reverse scenario. So I have a directory structure like: MyFiles | file1 | file2 | file3 | MoreFiles | | file4 | | ...
0
votes
0answers
47 views

GNU tar and condensed sparse files

My version of tar doesn't appear to be able to make non-sparse files sparse, though cp does. Are some tar implementations capable of this? (This answer suggests that they may be.) $ dd if=/dev/zero ...
1
vote
2answers
187 views

Remote backup via SSH

I have two computers, my local and remote. I want to backup remote server with tar command via ssh but saving tar file on local computer. Is it possible?
0
votes
0answers
38 views

Need to create .tgz file in Windows

I need to create a .tgz file - NOT a tar.gz, a .tgz specifically - in Windows. I've tried 7zip, Peazip, and ProgramArchiver, but they all create .tar.gz files. I've also tried running 7z from the ...
1
vote
2answers
50 views

Spaced string variable as command parameter inside shell script

How can I store a spaced string in a variable and use it as a command parameter inside a shell script? This is what I'm trying to do: DESTINATION='/mnt/External Harddisk' ...
0
votes
0answers
21 views

How to create a VM from archived linux?

There is a full backup of a 64-bit ubuntu called fullbackup.tar.gz which needs to become a live virtual machine. Is that even possible? VirtualBox file is preferred.
2
votes
1answer
188 views

Make tar archive only files without directories (equivalent of zip -D -j)

I want to tar (and gzip) files without directories and do not store directory paths. I want only flat files in my archive. For example if I'll do something like this: tar -czf archive.tgz ...
0
votes
1answer
159 views

Restoring a website from a tar.gz file

I have a backup of a website that I created using the tar command below: tar -cvpzf backup.tar.gz /var/www/vhosts/example.com/httpdocs I see that in the archive file, it has saved the entire path ...
0
votes
1answer
32 views

tar folders older from last week

I am trying to create a script that need to archive text logs from last week. Basically we have a path where we have folders on date as follows, Each folder contains csv files containing data for ...
0
votes
1answer
33 views

Does specifying the compression engine to tar directly actually use less intermediate disk space than tarring first and then compressing?

When I use tar to archive a directory and then compress it separately using e.g. xz, there will be a point where I have three files on my system - dir, dir.tar and dir.tar.xz. As soon as the ...
0
votes
1answer
32 views

Which is the preferred approach to pass command/script arguments to a log file?

Generally, I am wondering how I can pass the arguments from a terminal command to stdout. More specifically, I am using tar as part of my backup process and I would like the parameters (especially ...
0
votes
0answers
28 views

How to compile predictive mode using Gow instead of Cygwin on Windows?

I want to install the predictive mode for latex in Emacs editor. Since I have windows so I should have the make utility available. I don't want to install the fussy Cygwin (over 100MB), but the much ...
1
vote
1answer
143 views

Why tar hangs failing to extract a file

I am using a Solaris 11 system and am trying to extract from a tar file which I know to be OK, but when I try to extract it, tar hangs. I don't get any feedback from tar. What areas of Solaris should ...
0
votes
2answers
64 views

Downloading large amount of files from unix server

there are about 7000000 files in a single directory summing up to a total of 650 GB. (listing them alone is not even possible) what options do i have to download these? i was thinking of using tar ...
0
votes
0answers
83 views

How do I get file permissions to carry over from Windows to Linux via Python?

I recently replaced an outdated packaging script written as a batch file with a new one written in Python. We build/package the software on a Windows machine, then deploy it to a Linux machine. More ...