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

learn more… | top users | synonyms

3
votes
1answer
1k views

Estimating compressed file size using a list parameter

I am currently compressing a list of files from a directory in the following format: tar -cvjf test_1.tar.gz -T test_1.lst --no-recursion The above command will compress only those files ...
2
votes
1answer
438 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 ...
2
votes
1answer
276 views

recreating just the uid/gid unix permissions from tar

I was restoring a root partition based on a tar backup from system-rescue-cd. It went ok except the uid/gid mappings on the system-rescue-cd disk did not match the ones on this debian system that I ...
2
votes
1answer
76 views

Splitting tar archives and uploading them one at a time

I want to backup my systems to split tar archives with a script uploading them one by one. It has to create the split archive and then run a script. The script uploads the part and deletes it. This is ...
3
votes
0answers
48 views

Compressed file with a header containing all files within it, at the beginning of the file

I have noticed that most files resulting from a compression / archive process do not have a list of the files contained at the beginning of the resulting file, but rather at the end of it. For ...
2
votes
0answers
60 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
2
votes
0answers
558 views

Download zip/tar Github repository with .git metadata?

I need to download zip/tar Git repositories from Github and get not just the source but also the .git directory. I'm aware I could use git clone, but this is for an tool that runs on systems that may ...
2
votes
0answers
288 views

How to make tar only match patterns to extract on a certain directory?

The extracted tgz contains a structure approximately like: Source header.h bozo.h dir2 anotherheader.h The following: tar xzf libm.tar.gz --strip-components=2 Libm-2026/Source/*.h/ extracts ...
1
vote
0answers
18 views

How to convert a file format from tar.gz to tar.bz2 using the windows console?

I have some python packages in tar.gz format that I need to convert to tar.bz2. Is there a way to do that in the windows console? thanks!
1
vote
0answers
26 views

Gzip'd tar archive Spanning Multiple Disks

Very similar to (How to create tar archive split into, or spanning, multiple files?), but specifically I would like to simultaneously: tar and compress a 10 tb directory, having insufficient local ...
1
vote
0answers
41 views

7-Zip: Empty tar file created

Using 7-Zip portable i created a tar file containing a folder which also contains numerous files and folders (200mb+). When i open the tar file it is empty, but the size of the tar file is exactly ...
1
vote
0answers
152 views

How to untar file with UTF-8 special characters in Windows

I want extract a TAR file with special characters UTF-8 and when open it with WinRAR and PeaZip show filename like mark question and when extract it with WinRAR and 7-Zip file name change to ...
1
vote
0answers
39 views

Unzipping files downloaded from the Arxiv server

I want to download the source Tex files (not the pdf) of this document: http://arxiv.org/abs/1306.0322 After downloading here, I get a weird file with the ".0322v3" (the second part of the doc code) ...
1
vote
0answers
87 views

How do I extract files from one tarball to another tarball in one step?

I have some fairly large tarball archives, from which I need to extract some files. I will later repack those files to transfer them to another server. Currently that is a two (multi) step process for ...
1
vote
0answers
59 views

tar with -T - and prevent creating empty archive

I must use tar with -T - and get backed up file list from stdin. Untoftunately when input list is empty, tar creates empty archive. I want prevention to this. It is possible induce tar to do ...
1
vote
0answers
170 views

How to create Unix tarball with various file permissions inside on a Windows box?

Could anyone enlighten me on how can I create a regular Unix tarball archive (e.g., tar.gz or tar.bz2) on a Windows box in a way that will mark some files in that archive as "executable" (e.g., with ...
1
vote
0answers
856 views

Can I fix this TAR+XZ file?

I'm doing some file recovery on an old hard drive, using the most recent stable PhotoRec. After finding a lot of files that I wanted to keep, I decided to make some of them (meaning over 700) easier ...
1
vote
0answers
166 views

Permissions tar extraction to nfs share from a Perl script

As part of an installation procedure of a piece of software, I use: curl -s <url-to-targz> | tar -p -x -z -C / inside a Perl script (I use qx($command) or system($command), either will ...
1
vote
0answers
91 views

keeping Snow Leopard's directory timestamps when extracting a tar in Mountain Lion

I have a directory in a Snow Leopard box that looks something like: MyDir/ file1 SubDir1/ file2 SubDir2/ file3 I created an encrypted archive of it (still in Snow ...
1
vote
0answers
79 views

LZMA Based Archiving on Linux

I am trying to build an archiving system. I have tested out LZMA compression algorithm, and it provides very good results. However, I need the ability to add and retrieve(will remain in the archive) ...
1
vote
0answers
120 views

Extracting a tar file containing files with Chinese names will make the filenames illegible

On my Mac OS 10.6.8 I had a directory full of files that had Chinese filenames. I proceeded to run tar czf mydir.tar.gz mydir Now when I untar it with tar xzf mydir.tar.gz, the extracted filenames ...
1
vote
0answers
63 views

tar writes on read

I have an issue with tar. I'm tarring about 120GB of small files, and I feel i'm hitting a bottleneck. My system has 3 HDs, one for the system (sda), one with the files (sdb) and one target HD for ...
0
votes
0answers
10 views

extract only filest that differ (tar)

I want to extract the tar archive containing codebase of some project over already existing project (older version) without changing timestamp of the files that are the same. I'm using Debian and I ...
0
votes
0answers
4 views

Extract from tar between two dates

What would be the most efficient way to extract all those files from a large tar archive having a modification time between two given dates? I think tar -t could be used somehow to filter the files, ...
0
votes
0answers
28 views

Installing tar.gz file with command line on OS X

I want to install aria2 on OS X 10.11.3 I've downloaded tar.gz file from here. unzipped file with double click. opened command line (i have Xcode command line tools installed). cd ...
0
votes
0answers
22 views

Untar bz2 to Microsd fails

I am trying to uncompress tar.bz2 file to ext3 formatted MicroSD card and after copying some files to card I see below errors and tar fails with below errors tar: ...
0
votes
0answers
12 views

How to delete files from a tarball by owner or version? Tarball contains files from multiple owners

I was deleting and appending files to a already existing tarball (meaning created by someone else other than me) but now I have duplicated directories from different owners and even from the same ...
0
votes
0answers
22 views

FTP files from Linux server to windows client machine whilst maintaining linux file permissions

My local machine runs windows and my website is on a linux server. I want to back up my website to my local windows machine and maintain linux file and folder permissions. Ordinarily I would compress ...
0
votes
0answers
13 views

Strategies To Reduce Compressed File Lookup Time With Pixz?

I have a PIXZ-compressed (level -9) tarball containing around 4000 files (ordered, like pages in a book): compressed size is ~670M. Currently I am programmatically accessing these files using the ...
0
votes
0answers
68 views

Does tar happen to corrupt files? How can I recover a corrupted file?

So I was finishing a small c++ project last sunday, after a last check I made a tgz archive of it and sent it by email. And when I tried to open it again today, the file appeared to be completely ...
0
votes
0answers
23 views

Automate the tar on file creation

I need to tar the log files automatically when its get created with date (eg., error.log-20151116). How should i automate this activity. I don't want to perform this action by log rotation.
0
votes
0answers
178 views

Error when extracting tar.gz file which contains symbolic link inside

I tried to compress the Repo folder (AOSP) into tar.gz.Source folder has many git folders and Symbolic links.It compressed without any error.But when i tried to decompress it using tar command it is ...
0
votes
0answers
39 views

Recover overwritten .tar file on otherwise empty drive

I had a partition with basically nothing but a giant .tar file on it (that plus Ubuntu's "lost+found"). Then when I went to extract the tar file, I accidentally did tar -c instead of tar -x, replacing ...
0
votes
0answers
34 views

ssh download with tar and password prompt: tar: This does not look like a tar archive

So I am trying to download a directory recursively from another server with a command that looks like this: ssh user@server "cd some/directory && tar --dereference -c datadir" | pv | tar xv ...
0
votes
0answers
15 views

Synthesizing progress function with tar script

I use this tar script to backup my files: #!/bin/bash cd /mnt/backupdisk tar -cvpzf "$(date +%m%d%Y).tar.gz" --exclude="~/Documents/Excluded" --exclude-caches-all /home I want to add a progress ...
0
votes
0answers
21 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 ...
0
votes
0answers
24 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
20 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
31 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
0answers
134 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
0answers
504 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 ...
0
votes
0answers
65 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 ...
0
votes
0answers
1k 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 ...
0
votes
0answers
51 views

Archive directory system with compression for subdirectories - dar?

I have a large (~100GB uncompressed) collection of files that I want to store in < 2GB chunks for backup on a Windows Server based storage system. I'm running Ubuntu on my workstation. The data ...
0
votes
0answers
152 views

Tar a very large file directly to a drive

I was running my code to download some data on the Amazon cloud. The instance that I was running had an 8GB storage that I had bought with it plus 140GB extra instance storage (sort of plugged in as a ...
0
votes
0answers
50 views

Store the filename of the extracted file in a text file

what is the best way to store the filename of an extracted file in a text file? I have a script that extract a single file from a tar file and then I need to store the name extracted file to a txt ...
0
votes
0answers
89 views

script on a remote machine that archive files fails

I have a simple script (Given below) on a machine that collect files from several folders into a single one and then archive it. The script works as expected on the remote machine. When I run it via ...
0
votes
0answers
411 views

Bad CPU type in executable while typing tar command

recently i have upgraded to mountain lion and there is problem with my tar command, i am not able to unpack my tar files from terminal. when i type tar command in terminal i am geting bash: ...
0
votes
0answers
640 views

how to tar files with long name/long path

When I tar files with long path name, the file name is converted to "637", and the file doesn't exists in the packing file. I try to use gtar, with no successful. Do I need specific version of ...
0
votes
0answers
245 views

Auto-untar/gunzip a multilayer tarball in Win XP/7

I review a disgusting ball of knowledge each day that I'd like to think up a way to organize more automatically. The structure looks like this - Parenthesis show the number of files of that type in ...