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

learn more… | top users | synonyms

2
votes
1answer
637 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 ...
1
vote
1answer
37 views

How to restore the file access time after extracting from archive

Is it possible under Linux to restore the file access time to that of the original file after extracting files from an archive created with tar on NTFS file system? tar does not restore the access ...
1
vote
1answer
24 views

Recover files from corrupt archive

I have a tar file of 40Gb but when I open it with the archive manager on Ubuntu I get only 512MB. The major part of my files are messing. Even when I do : tar -tf myfile.tar.gz I don't get the list ...
1
vote
1answer
273 views

Extract a single file from a tar file to another directory

I have a tar file and I need to extract a single file from it and put it to another directory. I tried this but it gives an error message. It did extract the file but not to the directory that I want ...
1
vote
1answer
267 views

find files with spaces modified in last 60 days and tar.gz in files no bigger then 4gb with date

I maintain a file server. I need to backup files that have changed in a period of time. First i compressed up everything to 4gb files and backed up to dvd. But 7z that I was using 7z a -t7z ...
1
vote
1answer
79 views

How much additional disk space does tar require

I am moving a tar.gz archive between servers and had to note that when extracting the archive a large amount of additional disk space is used. My original data size is 12G, 7.8G compressed and ...
1
vote
1answer
93 views

Guess compressability of a large file

I have a large file (~20 GB) and I want to quickly make an (approximate) estimate of how well it can compress. I want an program which can provide an immediate guess at the compressed filesize, and ...
1
vote
1answer
523 views

Can I stop a netcat tar pipe and continue later without overriding existing files?

I'm trying to copy a lot of files from my NAS to my server, about 2TB. I found that using a netcat tar pipe to copy the directories goes pretty fast, about 40mb/s. It seems to work faster than rsync ...
1
vote
1answer
1k views

Convert .tar.gz/.tar.bz2 to .7z in batch?

How do I convert .tar.gz and .tar.bz2 files to .7z files using the command line?
0
votes
1answer
476 views

How do you extract a file using tar in AIX?

On a NORMAL Unix distro, tar zxvf works but seems like my machine has some super old version of tar that doesn't have the right parameters. -bash-3.00$ tar zxvf qemu-1.7.0.tar.bz2 Usage: tar ...
0
votes
1answer
172 views

How to batch extract from archive using tar to directories

I m trying to extract files contained within a directory in a tar.gz file. The extract I m using is tar zxvf foo.tar.gz. It extracts the files from the archive but removes them from the directory they ...
0
votes
1answer
137 views

How to keep daily tar.gz backup with less redundant data

Like most of you, I have a few daily tag.gz snapshot of a folder (of any application). There is only a few different each other but the tar.gz is not a diff/delta friendly format. Most data in the ...
0
votes
1answer
191 views

Ubuntu 13.04 Restore: How to untar 'full backup archive' and remove any changes later on?

Linux newbie here. I got a fresh template of Ubuntu 13.04 installed on my VPS and made a full system backup using TAR: sudo tar -cvpjf backup.tar.bz2 --exclude=/backup.tar.bz2 --exclude=/dev/* ...
0
votes
1answer
394 views

Creating a tar with a absolute path

tar -cf /Users/Files/myfile.tar /Users/Files/ I am basically trying to create a tar containing the contents of User/Files and create it in the folder of the contents. I can only execute this ...
0
votes
1answer
233 views

Tar of Linux Kernel corrupted error while untaring

I have downloaded two versions of Linux kernel 3.9.9 and 3.10 from kernel.org. When I am trying to untar this file I am getting this error Lzma library error: Corrupted input data . I am not ...
0
votes
1answer
34 views

Removind same *.tar.gz archives

I have crontab event archives to .tar.gz some folder every N hours. Finally I have collection of .tar.gz files. Now I want remove duplicating archives (created while target files stays unchanged) How ...
0
votes
1answer
576 views

One-click to create and extract .tar.gz files in Windows?

I'm using 7-zip latest alpha version (9.30) and I find it really inconvenient that, if I want to create a .tar.gz archive, I have to create a .tar archive first then add it to a .gz archive later. So ...
2
votes
0answers
138 views

tar: Cannot create symlink : File exists

I backup lots of gigebytes files in to myproject.tar.gz, and compress success without errors. Now, I want to decompress all to an folder "myprojects". adan@adan-Latitude-D630:~$ tar zxf ...
2
votes
0answers
128 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
7 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 ...
1
vote
0answers
18 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
9 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 ...
1
vote
0answers
18 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
74 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
283 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
92 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
76 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
78 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 ...
1
vote
0answers
96 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
59 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 ...
1
vote
0answers
1k views

Repair tar.gz files with a GUI

I have been downloading back ups from my web hosts cpanel on a weekly basis. The back ups are in tar.gz format. However, when I try to extract them, I get an error message stating that they are ...
0
votes
0answers
25 views

Java plugin doesn't work in Chrome in Ubuntu — how can I fix this?

I have Ubuntu 14.04 LTS (64 Bit) and Chrome Version 35.0.1916.153. I downloaded jre-7u60-linux-x64.tar.gz and extracted it in /usr/lib/java/ Then I created a directory named 'plugins' in ...
0
votes
0answers
9 views

Compressing with BarCat?

I'm having an issue using Barcat to show a dialog while compressing? Wondering what the exact syntax is? here's a link to Barcat things I've tried are bar -n apache24.tar.xz |tar -Jcf - bar -n ...
0
votes
0answers
8 views

Batch file to add specific string in a XML file and zip it to TAR afterwards

To start, I'm not a real hardcore programmer so bear with me. I searched the web for help and I got already some steps further to completion. What I'm missing, how to add a specific line after ...
0
votes
0answers
37 views

Extract Java7u60 Server on Windows

I've downloaded the file server-jre-7u60-windows-x64.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html and am trying to extract it with 7Zip. I ...
0
votes
0answers
15 views

Why does removing a dash break tar?

I was receiving an error ("Exiting with failure status due to previous errors") when I ran this command: tar -cvfz output.tar.gz folder/ But I did not receive an error when I removed the - from in ...
0
votes
0answers
47 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
34 views

redirect tar notices when used with pipe

I have a remote backup cron script that contains the following line: cat ${list} | xargs tar Jlcf - | ssh -i /root/.ssh/backup \ seron@dummy.net "backup_${DATE}.txz" It gives tar a list of ...
0
votes
0answers
140 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 ...
0
votes
0answers
16 views

Is there an option to make 'tar' warn when an archive doesn't contain a single top-level directory?

I personally dislike it when tar/zip files contain many files without a base directory. For example, mypackage.tar.bz2 ├── a.txt ├── b.txt └── c.txt instead of mypackage.tar.bz2 └── mypackage/ ...
0
votes
0answers
37 views

How do I join, decrypt and uncompress my backups?

This is the line I used to back up some files for f in "*"; do tar -ch "$f" | pv | xz -9 -v |openssl des3 -salt -k “mypassword” | split -a 4 -b 200m – “/backups_${f%}.tar.xz_” ; done Now I am ...
0
votes
0answers
11 views

Recursively updating modified files in archive

I'm trying to update an existing archive using 'tar', but I understand that 'tar' doesn't recognize modified files exist in the specified directories, e.g.: $ find . . ./ex ./ex/ex ./ex/ex/.pikAboo ...
0
votes
0answers
32 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
18 views

Adding a file to a location within tar file

I use Ark in Fedora. It can add files. But it seems unaware of the fact that tar may have internal structure and there are much more places within the archive to add and move files than tar's root.
0
votes
0answers
114 views

git archive creates a tar file that cannot be manipulated

My usual source release script create a tar archive from git and then add a version file: echo "0.9.2" > .tarball-version touch --date="$(git log -n 1 --pretty=format:%ci)" .tarball-version git ...
0
votes
0answers
75 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
65 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) ...
0
votes
0answers
273 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
438 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
233 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 ...