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

learn more… | top users | synonyms

0
votes
0answers
109 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 ...
1
vote
1answer
72 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 ...
0
votes
1answer
124 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 ...
-1
votes
1answer
30 views

How do I back up images with limited disk space?

I'm in a scenario where I have one 500GB hard drive and about 400GB of images I want to tar. I obviously won't have enough disk space, but I don't mind getting rid of the images as they are added to ...
0
votes
2answers
61 views

I cannot open folders in .tar file

I've downloaded factory image for my Nexus4 mobile, the Image folder is compressed in .tar file but it tells me that its unknown file Type: File ,, how can i open it? here take some photo of my ...
1
vote
3answers
80 views

Untar after uploading to linux from windows

I have created tar.gz from my linux server, and I downloaded the same to my linux system and I successfully doen untar with tar -xvf package.tar.gz. And now my issue I downloaded same ...
0
votes
1answer
200 views

How do I upgrade my version of tar on Red Hat 5?

I'm running RHEL 5 and the default version of tar is horribly old. yum update tar shows that I have the latest version according to their repo. How do I go about upgrading to tar 1.27, please?
1
vote
0answers
30 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 ...
0
votes
0answers
18 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
3answers
67 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
1
vote
1answer
50 views

How to find tar format of archive?

There are several formats of tar archives, ustar, gnu, etc. Is there some tool that can show which format a given archive is in? (Haven't found it in manpage of bsdtar nor in info pages of GNU tar). ...
2
votes
1answer
33 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 ...
2
votes
1answer
36 views

Pull root image from remote linux

I have switches running PicOS-Linux. This pretty much Linux with Open vSwitch and Busybox. Updates are handled by loading an image of the full file system. So a system image is pretty much just a ...
1
vote
1answer
33 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
36 views

Extracted files not recognized

I extracted a tar.gz file with 7-Zip. It worked fine, all the files and folders are now visible and have names, different size and so on, yet I cannot open them. And the icons are all the same - a ...
2
votes
1answer
4k 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 so it copies files and folders with location structure and when I untar on ...
0
votes
1answer
107 views

Extract specific folder from a tar.gz

I know this question was previously asked on this site before like here 1 and here 2 but no success for me. I want to extract the Measures folder from my S012011_csv.tar.gz zipped file. If I do tar ...
2
votes
0answers
623 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 ...
0
votes
0answers
80 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 ...
3
votes
1answer
78 views

Why does tar with -z option create archive with different hash everytime

Can you tell me why tar czf archive.tar dir creates archive with different hash everytime (I check with 'md5sum') Without compression parameter -z or with parameter -j instead all works fine. ...
1
vote
2answers
93 views

extract archived .bz2 files inside a .tar archive with a single command

i need to decompress .bz2 files inside a .tar archive (two step decompression) For example: requested_files_1.tar has multiple .bz2 files inside. How can I extract them with a single ...
0
votes
1answer
49 views

Sqoop Tar ball unpacking

I'm working through the installation directions for Sqoop: Sqoop server supports multiple Hadoop versions. However as Hadoop major versions are not compatible with each other, Sqoop have ...
0
votes
0answers
41 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 ...
-1
votes
1answer
69 views

Backing up a directory of data incrementally in linux

I have a directory full of files that remain relatively static. However, some files are moved between subdirectories. I create a full backup every month of this data because it's a lot of data. I'd ...
11
votes
2answers
485 views

Compressing many similar big files

I have hundreds of similar big files (30 megabyte each) which I want to compress. Every pair of files have 99% of same data (less then 1% difference), so I expect to have not more than 40-50 megabyte ...
2
votes
2answers
138 views

How to extract tar file on Windows, when the filenames include a colon?

I have a tar(.gz) file created on a Linux system, and the filenames contain colon characters. The tar utilities I can find on Windows don't extract these files at all. How can I do this, ideally ...
0
votes
3answers
200 views

How to install a tar.gz on Windows?

I have installed a MPD (Music Player Daemon) on my Raspberry Pi (running under Unix). Then GMPC (the client) on Windows. There is a plugin for the GMPC to catch the album covers, but it is a tar.gz ...
2
votes
5answers
69 views

List files in a tarball over internet

To list an archive's contents I can do : tar -tzvf mytarball.tar.gz But this works for local files only. Can someone point out how to do it (if at all possible) for files over internet. I tried it ...
1
vote
1answer
28 views

How can tar backup access timestamps

How can tar backup file access timestamps so it is included somewhere in the *.tar file? I couldn't find this in the docs, the closest was --atime-preserve, which preserves access times on the source ...
0
votes
1answer
60 views

Tar up only 3 specific files in command line with linux

Is it possible with one command to tar up 3 files into one tar archive? For example, tar up: public_html.tar.gz dbapp.sql dbwp.sql into a tar file called bak.tar.gz
0
votes
1answer
31 views

How to use pv to see decompression progress?

I've seen: How to use Pipe Viewer (pv) for measuring compression progress? Is there a way to do the same thing for decompressing a gzipped file?
1
vote
0answers
309 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 ...
1
vote
2answers
139 views

Tar incremental option does not add new files

In an incremental backup, tar does not seem to be able to add new files : $ tar -cvzf test.tar.gz -g test.snar a.txt a.txt $ tar -cvzf test2.tar.gz -g test.snar a.txt b.txt The second command ...
1
vote
2answers
200 views

List contents of large tar archive quickly

I need to list the contents of a fairly large (gzipped) tar archive (about 37GiB). tar -ztvf archive takes forever. Is there some way to get this listing quickly? Possibly by only listing contents ...
1
vote
2answers
2k 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 ...
0
votes
2answers
78 views

Does creating a tar file need more space?

HTTP File Server or HFS is a small utility which allows one to share files with others by creating http links for every file Now when I want to download multiple files, the software creates a "tar" ...
1
vote
2answers
39 views

Is it possible to give “out-of-the-box” programs an executable command in Linux?

I don't know if I'm being clear. Take the following scenario: You have downloaded a .tar.gz compressed program, you unpack it, and it runs right from there. It's not source code, just an application ...
1
vote
1answer
100 views

Extracting a .tar.gz I get a file without extension

The file is this: http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.3.2-linux-x86.tar.gz As usual I do tar -xvzf pooler-cpuminer-2.3.2-linux-x86.tar.gz but I just get a file ...
2
votes
1answer
107 views

Given that tar ignored my 2 sockets, how do I backup and then restore my login folder?

I did a network backup of my login area in preparation for reformatting the volume in which it resides to make it bootable on my old Power Mac G5 running the very latest release of Leopard. Though ...
0
votes
0answers
20 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/ ...
1
vote
1answer
158 views

How to convert a file of format tar.gz to tar.bz2?

Like the title says, how do I do this conversion from the Linux console?
0
votes
1answer
984 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 ...
1
vote
2answers
176 views

How “tar” command manages to “see” changed files between two incremental backups

How tar command checks whether a file is changed or not? How tar "knows" that this file is changed and it has to go in the next incremental backup? I have some assumptions: it may compare "mtime"; ...
2
votes
1answer
2k views

Avoid errors from tar failing to restore directory permissions

I observe the following behavior with both tar 1.26 and 1.27.1: $ mkdir a b a/diffowner $ sudo mkdir b/diffowner $ sudo chmod a+w b/diffowner $ echo foo > a/diffowner/foo $ tar -C a -cvf test.tar ...
2
votes
1answer
89 views

wget download from mirror download links

I'm trying to download using wget a tar.gz. The file is redirected based on the url parameters, so all downloads are redirected automatically. for example: wget ...
0
votes
0answers
19 views

On Windows 7+ - how to unpack .tar.bz2 with single click using 7-zip or other tool? [duplicate]

Assume a user that often gets double packed files and wants to avoid wait 10 min to get .tar out of 2GB file and then wait another 10 min to again unzip .tar. Is there way to do it in one process? ...
0
votes
1answer
31 views

Most sensible way to archive email to a tar.xz

I would like to archive all my old email in a way that I could easily restore it later if I need to reference it. What is the most sensible format to export/store my email before I then tar it? eg. ...
1
vote
0answers
27 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 ...
0
votes
2answers
1k views

Bash tar and output to log file

How can i write TAR operation in to a log file? tar -czvf arh.tar.gz public_html > 1.log TAR -czvf worked thanks guys! Now in bash script: for i in */ ; do ...
2
votes
1answer
1k views

how to remove full path when doing tar.gz compression

I'm using this command to archive a directory named g from java code: tar czf /a/b/c.tar.gz /e/f/g When the tar file c.tar.gz is created, I find an entire path e/f/g then all files of the g folder ...