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 ...
2
votes
2answers
72 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 ...
4
votes
2answers
246 views

How make a compressed tar when there are too many filenames for the shell to expand on a single line?

Normally I would just do something like: tar -czf archive.tar.gz *.csv But when there are too many files in the directory for the shell to expand on a single line this doesn't work. In these cases ...
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 ...
3
votes
3answers
292 views

Display deflation percentage of tar command (like zip command)

This question may sound weird but I would like to know if there is a possibility to display the deflation percentage of the files processed in the tar command. I use this command tar -cjvf ...
0
votes
2answers
88 views

Is it possible to provide a blacklist of filenames to tar to prevent those files from being added to the archive?

Something along the lines of tar --blacklist='foo.bar foo.baz' -czvf foo.tar.gz ./* such that any files named foo.bar or foo.baz in the current directory or subdirectories would be ignored?
1
vote
1answer
4k views

What command to use to unpack a .tar.gz file in Windows?

I use to receive tar.gz files fromm colleagues but unpacking them with 7zip is not convenient as it unpacks a tar file from gz first while I usually seek to get the tar file contents (so I have to ...
2
votes
1answer
166 views

UNIX shell command to expand files of any compressed type

Is there any UNIX shell command to expand a compressed file which type is not known in advance? I should be able to use this command to expand at least any of the following types of files, though the ...
8
votes
4answers
8k 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 ...
2
votes
1answer
408 views

List full timestamps of files in a tarball

I have a large tar archive and want to see the exact (nanosecond) timestamps that are stored for each file in the archive. In case it's relevant, the tarball is in POSIX-2001 format (tar ...
23
votes
5answers
9k 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 ...
1
vote
2answers
997 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
5answers
4k 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?
0
votes
1answer
450 views

Does tar provide a method to tar up only files listed in a particular file?

The question title is pretty weird, but basically I have a file that is a list of other files, lets say FilesIWantToTar.dat. I want to say something along the lines of tar -c ...
0
votes
1answer
80 views

Getting some garbage text when tar-ing a file

when I run the following command: tar -c music.tar iTunes\ Music/ But I get the following garbage output. ...
1
vote
1answer
106 views

Assigning new creation file time on tar extraction

Does anybody know how i can tell tar to assign a new creation date to extracted files? Let's say I have an archive filled with old files of varying ages. Upon extraction I want all files to have ...
5
votes
2answers
2k views

Why can't -z be the last command-line option to be used with tar?

$ ls one.tar.gz one.tar.gz $ tar -xvfz one.tar.gz tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now $ tar -xvzf one.tar.gz one $ tar -xzvf one.tar.gz one $ tar ...
11
votes
2answers
9k views

How can I create multipart tar file in Linux?

How can I create a multipart tar file in Linux?
4
votes
3answers
2k views

how do I use tar -C on Snow Leopard when creating an archive?

The man page states -C directory In c and r mode, this changes the directory before adding the following files. However, tar does not change to the directory I specify, but instead reports ...
6
votes
2answers
1k views

tar a directory

I'm trying to tar my website files that are on my test server to be able to upload them to 'real' server. tar -cf mysite.tar /var/www It creates archive fine... but when I open that archive it has ...
9
votes
1answer
6k 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" ...