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

learn more… | top users | synonyms

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
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 ...
2
votes
0answers
187 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 ...
2
votes
1answer
853 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
2answers
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?
2
votes
3answers
220 views

tar-ing / should I use -C / . or just /

tar cvf backup.tar -C / / # or tar cvf backup.tar / produces an archive like etc/ and gives warnings tar: Removing leading `/' from member names tar: Removing leading `/' from hard link ...
2
votes
3answers
561 views

“tar -czf” for first 5 thousand files

I have a directory with too much files in it. I want to compress first 5 thousand files in that directory to become file.tar.gz and then 5001 - 10000...and so on how to do it?
1
vote
2answers
6k views

Use tar and gz to create archive in Ubuntu Terminal

I want to archive 3 folders, given their names in Ubuntu command prompt. When I use tar -c abc tt zz -> it will do nothing.
1
vote
1answer
995 views

Tar xvzf question

Hi I use FC12 command : tar xvfz GeoIP.dat.gz I get the errors tar: This does not look like a tar archive tar: Skipping to next header tar: Error exit delayed from previous errors Whats the ...
1
vote
5answers
1k views

tar command to extract archive with colon in the name

I try tar -zxvf plugin\:xyz.tgz and received the error: rsh: Could not resolve hostname plugin: Name or service not known tar: plugin\:thold-latest.tgz: Cannot open: Input/output error tar: Error is ...
1
vote
3answers
4k views

Tar an entire folder EXCEPT a few files and folders?

I have a folder structure like so: file1 file2 file3 file4 folder1 folder2 Without writing each file, how can I tar zip all the files and folders, except file1 and folder1?
1
vote
3answers
2k views

Prepend prefix in tar

I currently do in a shellscript very inefficiently: cp -a $MYPATH /tmp/$VERSION cd /tmp tar cjf archive.tar.bz2 $VERSION I want everything to be contained in the directory called $VERSION - is ...
1
vote
1answer
159 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?
1
vote
3answers
3k views

Between xz, gzip, and bzip2, which compression algorithim is the most efficient?

Between xz, gzip, and bzip2, which compression algorithm gives the smallest file size and fastest speed when compressing fairly large tarballs?
1
vote
3answers
2k views

Is there a command to determine the compression ratio of a tar.bz2 file?

I have a file.tar.bz2 that's about 50GB and would like to extract it however I don't know how much space I will need. Is there a command to print the compression ratio of the tar.bz2 file?
1
vote
2answers
196 views

tar -x -v -f on tape drive in Ubuntu (latest)

I am given the following command: tar -x -v -f /dev/rct0 -b 20 * Could someone please explain its meaning, because in this form it looks completely useless to me. As far as I know -x stands for ...
1
vote
2answers
180 views

Backing up multiple vmware VMs from a mac

I use vmware fusion to prototype and model enterprise infrastructure. This question is intended to solicit an optimal method for backing up (preferably incrementally) VMs. My VM directory is now ...
1
vote
1answer
411 views

Find a list of files from text file in subdirectories and put into tarball?

I have a list of files I need to tar. Typically, I would use tar -cvf allfiles.tar -T mylist.txt But I discovered that the files I need are scattered into subdirectories and my list only has the ...
1
vote
1answer
8k views

tar shows “is not a bzip2 file” error when uncompressing a .tar.bz file

I've a data_or.tar.bz file I tried to extract it with $ tar xjvf data_or.tar.bz Output is bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error is not recoverable: exiting ...
1
vote
5answers
6k views

How can I run the “tar -czf” command in Windows?

I am currently running a computer which has access to only Windows. I have to submit a folder after running tar -czf on it. How can I do this in Windows, do I have any options?
1
vote
2answers
14k views

tar Cannot open: No such file or directory

Fresh install of CentOS 5.4 Downloaded the following: http://prdownloads.sourceforge.net/webadmin/webmin-1.510.tar.gz MD5 sum is correct (cdcc09d71d85d81914a90413eaf21d3f). The file is located ...
1
vote
2answers
236 views

Advanced backuping script

I'm currently writing an advanced starting script for my minecraft server. Everything works out as I want it too. But the problem is the backups. I created a function for it. It works also great and ...
1
vote
1answer
48 views

What does GNU tar “--restrict” option actually restrict?

The manual of GNU tar only states that --restrict: --restrict disable use of some potentially harmful options Can anyone elaborate on what are these "harmful" options? I could not ...
1
vote
2answers
402 views

What's the difference between /proc and /proc/ (with a trailing slash)?

I try using tar to backup my files. With --exclude=/proc/, the archive contains files under /proc, and --exclude=/proc does not. What causes the difference? P.S. The shell I use is Bash.
1
vote
3answers
330 views

Unix tar compressed folder not opening on windows

I used command tar -cvzf upload.tar upload to compress my upload folder, but when i'll extract it on widows using 7-Zip it shows up as just a single file, not folder. And the uplad folder isn't ...
1
vote
2answers
807 views

Excluding Path While Compressing with TAR/GZ

I am compressing list of files like this: tar cvzf mycompress.tar.gz /dir1/dir2/file1.txt /dir1/dir2/file2.txt However when I uncompressed them the directory /dir1/dir2/ is still preserved. How to ...
1
vote
3answers
1k views

Linux tar command with exclude

I want to create tar file of a folder but this folder contains some tar.gz files like abc.tar.gz, pqr.tar.gz which i don't want to include so how to exclude this files while making the ...
1
vote
4answers
4k views

Using wildcards with tar

I am using this command to backup some important configuration files: tar -czvf /var/backups/201102121202.tgz -C / etc/crontab etc/httpd/conf.d/* etc/httpd/conf/httpd.conf etc/httpd/passwords ...
1
vote
1answer
87 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 ...
1
vote
6answers
817 views

How do I tar dot files but not dot directories

The following tar command will exclude all dot files and dot directories. tar -cvzf /media/bjackfly/bkup/bkup.gz --exclude '.*' --one-file-system /home/bjackfly In my case I want the dot files to ...
1
vote
2answers
157 views

How do I undo an incorrect tar command on OSX?

I spent the past weekend creating a VirtualBox instance with the perfect setup. Once I was finished I tried to tar+gzipi the virtualbox for sharing with others, and I accidentally ran the following: ...
1
vote
2answers
620 views

Bash: Concatenating TAR balls

Is it valid to do this: { tar -c dir1 tar -c dir2 } | cat > file.tar Is the resulting file.tar a valid tar ball? If not, how can I concatenate tar balls on the fly?
1
vote
2answers
254 views

Continually compressing a stderr stream

Is there some way to continually compress the output of a program (in almost realtime)? For example I have this program that produces (a lot of) output to stderr. I want to do something like ...
1
vote
4answers
356 views

linux tar command option

I know how to tar a bunch of files, minus several I don't want: tar --exclude=./*.jpg -pcjvf all.tar.gz ./ Here I tar all files, except any jpg extensions. I want to do the opposite. I need to ...
1
vote
2answers
1k views

Linux: Compressing all .pdf files recursively (.tar)

At the linux command line, I'd like to compress all .pdf files in a directory, any of it's subdirectories and so on - but only .pdf files. I'm struggling to figure out the syntax, any ideas ...
1
vote
2answers
99 views

When I'm compressing GBs of data with 10k plus of files and directories, how do I know there's no corruption?

To limit the focus of the question, I'm going to say using Linux as the OS, and tar as the compression format. Clearly run-time is important, but knowing the archive is valid is more important. If ...
1
vote
1answer
344 views

Can I get the version number of tar used to create a specific tar file?

I need to know the version number of tar used to create a specific tar file. How can I do that?
1
vote
1answer
63 views

What should I do if tar have no “-I” option?

I found "-I" option of tar is only availbe for Solaris, and no countpart in Linux machine, what should I do to realize same operation?
1
vote
2answers
38 views

Tar archive won't unpack – “Path contains '..'”

The name of the file 2014-12-12 04-00-01.tar. I executed the command: tar xvf 2014-12-12\ 04-00-01.tar The output is many lines of the form: x ../server/: Path contains '..' And then a few of ...
1
vote
1answer
66 views

Extracting a tar.gz file returns, “This does not look like a tar archive.”

I have a tar.gz file and I want to extract it using terminal. I used following commands: tar tvzf ldtp_3.5.0.orig.tar.gz and tar -xvzf ldtp_3.5.0.orig.tar.gz. However, I get the same result for both ...
1
vote
2answers
39 views

how to use tar '--remove-files' option inside find -exec?

I've got a number of very large log files which I want to compress individually so I can't use xargs or pipe stdout to get a huge compressed file. I'm trying to do this: find . -mtime +1 -iname ...
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 ...
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
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 ...
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 ...
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"; ...
1
vote
3answers
9k 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 ...
1
vote
2answers
257 views

7zip is incompatible with tar format created by git archive

% git archive --format tar master > archive.tar % file archive.tar archive.tar: POSIX tar archive % tar cf a.tar archive.tar % file a.tar a.tar: POSIX tar archive (GNU) 7zip cannot unpack tar ...
1
vote
1answer
167 views

extracting tar files split over multiple dvd's

If I have a bziped tar file split over multiple dvd's what's the best way of extracting it without creating a lot of intermediate files? I don't want to first copy all the archive parts to an ...