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

learn more… | top users | synonyms

0
votes
0answers
21 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
24 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
24 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
22 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
24 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
24 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 ...
10
votes
2answers
337 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
51 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
60 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 ...
1
vote
5answers
31 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
22 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
15 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
13 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?
0
votes
0answers
60 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
23 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
41 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 ...
0
votes
1answer
141 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
35 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" ...
0
votes
2answers
34 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
47 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
36 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
15 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
50 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
206 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
76 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"; ...
1
vote
1answer
75 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
53 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
24 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
15 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
147 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 ...
1
vote
1answer
62 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 ...
1
vote
3answers
1k views

tar: cannot open: no such file or directory

I am trying to follow the instructions here to install Jetty on ubuntu but I am running into a problem when I try to use tar. cd /usr/local/src sudo wget ...
7
votes
2answers
196 views

let tar auto detect compression type when extracting from stdin

I use GNU tar. It can auto detect compression type when compressing/decompressing files. But I need to decompress an archive from stdin and the compress type is unknown. I noticed that tar can give me ...
0
votes
0answers
33 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
1answer
36 views

Extract single file from tar without taking its directories with it

I'm currently using this command tar -zxvf foo.tgz -C /root/dir1/ dir2/dir3/dir4/dir5/file to extract my specific file from a tar archive to a given directory, dir1. As is, I end up with ...
0
votes
0answers
10 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 ...
1
vote
1answer
50 views

How to create and split a tar archive and send the results to my server?

I would like to create a .tar backup of some files on my laptop and send them to my server. My laptop's HDD is not large enough to hold both the original and backup copy of the file. I would like to ...
0
votes
1answer
23 views

Strange behavior encountered while using tar

I had a folder of useless C programs for a project. When I was compressing it using tar, I kept using tar -cvf c-project and then realized I'm setting the flag for the file name and I'm giving ...
1
vote
1answer
113 views

Linux - transfer all files modified after a specific date to a new harddrive

I recently had my second hard-drive of the past semester begin to fail on me and become unable to ghost to a new drive. I still had the first hd that failed so we ghosted that drive but now I need to ...
0
votes
0answers
24 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 ...
1
vote
1answer
142 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
2answers
77 views

Remove folder structure from archive, ignore folder while archiving and fix error

I am trying to make a script to backup each of my plesk hosts to individual files, I am having two problems: I would like to remove the folder structure from archive, the tar is 3 folders deep I am ...
2
votes
1answer
64 views

tar: compress only the contents of a folder

I have to compress only the contents of the folder, not the folder with tar, there is any argument for that? I have search but I don't find anything. Example: mainfolder/ asd1 asd2 ...
5
votes
3answers
95 views

Unarchive file while reducing size of archive?

The dilemma: I have a 10GB archive and a 20GB harddrive. When I go to unzip / unarchive the file the harddrive fills up and the process fails. Question: On ubuntu server 12.04 / linux is there a way ...
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.
1
vote
1answer
743 views

tar/bz2 compress a file removing uncompressed original

Is there any way to turn a directory called dir1 into dir1.tar.bz2 without keeping the original? I need to save space and want to compress some large files but don't have enough room to keep a ...
0
votes
3answers
384 views

extract single file from huge tgz file

I have a huge tar file (about 500G) and I wan't to extract just a single file from it. However, when I run tar -xvf file.tgz path/to/file it seems like it is still loading the whole contents into ...
1
vote
1answer
68 views

Specifying Disk Drive to Write Files?

After tar.gz'ing a 25 GB folder, I copied the file from my local machine to a remote server via scp. Once the file was transferred, I failed to extract the tar.gz due to: $ tar -zxvf dump.tar.gz ...
0
votes
0answers
92 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 ...