An archive file format (and the program that reads it) commonly used on Unix and Linux.
0
votes
2answers
35 views
How to extract such a compressed file?
I have been asked to extract a ZIP file having in it 3 tar files and each tar file contains around 3000 gz files.
I had to extract the main ZIP file first then extract the tar files second then ...
0
votes
1answer
18 views
How to collect all media file in a mac directory structure?
I'm trying to copy all media files (Mac file type of Image or Movie) to the same directory structure, only taking media files.
Is there a more efficient way than what I've got below?
Is there a ...
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?
-1
votes
2answers
21 views
Extracting a specific file from tar.tgz archive in windows 7
This has been asked several times but I can't seem to figure out the solution.
I have a tar.tgz archive which has .txt files in it. I need to extract a specific file t1.txt from it programatically ...
1
vote
1answer
29 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
0answers
25 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 ...
6
votes
1answer
3k views
How can I force only relative paths in “find” output?
I am attempting to create a script that can compress files with a certain extension in a number of directories into a single tar-ball. Currently what I have in the script file is:
find "$rootDir" ...
0
votes
2answers
28 views
Is it possible to tar two different files at the same time?
I need to tar two different directories at the same time. Is it possible to execute two instances of tar in parallel?
0
votes
3answers
34 views
Untar multiple files at once?
I'm on Windows 7 and have a number of .tar files with the following names:
.tar-aa
.tar-bb
.tar-cc
...
The tar files contain a large backup directory which is broken up into chunks of 250MBs each. ...
0
votes
2answers
1k views
How to make sure a .tar.gz file is valid and will uncompress correctly?
I have a few BIG .tar.gz files, and I want to make sure they will uncompress, but without actually doing it.
If the file opens on "Archive Manager" on Ubuntu, and I can view it contents there, does ...
2
votes
1answer
16 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
2answers
52 views
How to stop tar from archiving the root path to files?
When I run the following command:
tar cfvz backup.tar.gz /path/to/my/files/*
It gzips the entire path. So when I unzip the file, I have to go open 4 folders (path -> to -> my -> files) to get to ...
0
votes
3answers
3k 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?
17
votes
5answers
4k views
Why do I get files like ._foo in my tarball on OS X?
When I tar certain files in OS X:
tar cvf foo.tar foo
It produces an extra file ._foo in the tarball:
./._foo
foo
which only shows up if I extract it on a non-Mac operating system. But ._foo ...
0
votes
3answers
44 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 ...
11
votes
5answers
18k views
tar: Exiting with failure status due to previous errors
I have written a little script that tars and compresses a list of directories + files.
The script appears to run succesfully, in that a useable .tar.gz file is created after the script runs.
...
0
votes
2answers
67 views
How to open big tar.gz file
I created a big tar.gz file, following this guide. It is a daily backup file.
My computer has 3 GB of RAM and is running Windows 7. My biggest archive is 183 GB, containing pictures and documents.
...
0
votes
2answers
113 views
What is the difference in various commands for compressing files in linux?
What are the commands for compressing files in linux and what are the difference between them? (for example: tar, gzip, rar).
I'm working on Linux Mint 11 and doing a script for compressing files. I ...
7
votes
8answers
116k views
How to extract a tar file (.tgz) in windows?
How to extract a tar file (.tgz) in windows? Is this possible, or do I have to get into a linux environment and extract it?
1
vote
1answer
26 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 ...
0
votes
1answer
48 views
Create a tarball with a fake `root`
I'm working on something in a Makefile that will look something like this:
tarball:
mkdir -p tmp/tarball/etc/service
mkdir -p tmp/tarball/usr/local
mkdir -p ...
1
vote
5answers
180 views
how to copy entire linux root filesystem to new hard drive on with ssh and tar
I know I've found this information before, but can't remember the right google query.
I need to transfer an entire linux root filesystem off of a failing hard drive onto another computer with an ...
0
votes
2answers
130 views
tar: --exclude=“.git”: Cannot stat: No such file or directory
This is driving me crazy. I want to tar a directory, but exclude some files. This is my command:
tar -zcvf $NAME-$VERSION.tar.gz $NAME-$VERSION --exclude='.git' --exclude='.gitignore'
While the ...
23
votes
4answers
17k views
How to specify level of compression when using tar -zcvf?
I gzip directories very often at work. What I normally do is
tar -zcvf file.tar.gz /path/to/directory
Is there a way to specify the compression level here? I want to use the best compression ...
0
votes
1answer
55 views
How do I use tar to transfer through ssh on a non standard port?
I am trying to transfer all files from within a directory through tar as follows:
tar cz * | ssh -p 57310 root@example.com tar xzv -C /home/site/www
and the error that is returned is
stdin: is not ...
1
vote
2answers
7k 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 ...
0
votes
3answers
38 views
How to tar/zip a parent directory exculding a child direcory
I want tar a direcory which contains a number of child directories. But here my requirement is to tar the entire parent direcory excuding one child directory.
Is there any command or procedure for ...
1
vote
1answer
51 views
Why is this archive failing to create symlinks?
When I extract the archive Symfony_Standard_2.2.1.tgz using this command:
$ tar xzf /home/tomas/downloads/Symfony_Standard_2.2.1.tgz
I always get the errors:
tar: doctrine.php: Cannot create ...
0
votes
1answer
134 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?
3
votes
2answers
71 views
Installing Subversion on Unix machine
I'm new to unix and trying to create a guide for users to install subversion. I've found a tutorial about how to build from a tarball. I'm ready to try it out, but I don't know how to download the ...
1
vote
2answers
54 views
extract to folder with tar command
I want to extract a tar.bz2 file to specific folder. Problem is that tar xjf will extract the content without extracting to a folder. Assume I have 1.tar.bz2. I want to have a result like this
...
2
votes
2answers
262 views
Equivalent to tar's “--strip-components=1” in unzip?
I have a script that extracts a tar.gz-file to a speificed subdirectory mysubfolder:
mkdir mysubfolder; tar --extract --file=sourcefile.tar.gz --strip-components=1 --directory=mysubfolder;
Is there ...
2
votes
1answer
42 views
Rename directory with tar
I have some directories, I want to pack into a tgz archive:
/home/stofl/myproject/migrations/
/home/stofl/myproject/source/
/path/to/my/migration/tool/source/
The archive should have the following ...
1
vote
0answers
50 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 ...
140
votes
17answers
8k views
What is the advantage of using 'tar' today?
I know that tar was made for tape archives back in the day, but today we have archive file formats that both aggregate files and perform compression within the same logical file format.
Questions:
...
0
votes
2answers
2k views
tar: This does not look like a tar archive
I split a huge folder:
$ tar cvpf - somedir | split -b 50000m
… and then I transferred the split files to another server and merged it:
$ cat x* > somedir.tar.gz
but when I tried to ...
2
votes
2answers
665 views
.tgz file- tar: Unrecognized archive format
I'm trying to install a 10gen build of mongodb on my local mac running Mountain Lion (10.8.3):
I fetch it with curl at:
curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.tgz > ...
-1
votes
2answers
150 views
tar -xvf *.tar.gz gives me a weird name on extraction
I have a file "elasticsearch-servicewrapper.tar.gz". When I try to run:
tar -xvf elasticsearch-servicewrapper.tar.gz
I expect the extracted folder to be called ...
0
votes
2answers
62 views
How can I create a tar file from a list of files in another tar file?
I have a process that creates a tar file with copies of files that need to be updated.
I want to backup existing files before overwriting with the new files.
I've tried
tar cf backup.tar -T `tar ...
0
votes
1answer
21 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
0answers
37 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 ...
11
votes
4answers
4k views
Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux
When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors:
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended ...
0
votes
0answers
298 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 ...
1
vote
2answers
137 views
tar backup zsh script
Trying to set up a cronjob ran tar script to backup site (without .git and setup folder) every night and upload time stamped archive to Dropbox.
It gives me a hard time as archive is created along ...
1
vote
1answer
221 views
How to extract .tar.bz2 directly? (avoiding a folder creation)
I always extract this kind of files using on the route where I want those files:
# tar -xvf file.tar.bz2
But it always creates a folder called "file" (for this example) and stores all inside it.
...
3
votes
1answer
97 views
tar file extraction, why file size reduced
We commonly know that compression is the reduction in size of data in order to save space or transmission time, I should expect bigger size when I extract compressed file. I have downloaded a file in ...
0
votes
1answer
40 views
Extract untarred files from a tgz in linux
I have a large .tgz file which is of very large size(19GB). I started the untar operation in vmware last night but in the morning, I saw a blue screen of death. I dont want to waste time on untarring ...
0
votes
2answers
123 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
votes
2answers
569 views
How to obtain maximum compression with .tar.gz?
The way i understand the use of tar + gzip is that tar is normally used to consolidate a grouping of files into a single file, then gzip is used to compress that file.
I recently learned that tar can ...
0
votes
1answer
163 views
Tar file changed as we read it
Does tar skip any files that produce the error "file changed as we read it"? The version of tar I am using is 1.14.


