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

learn more… | top users | synonyms

0
votes
0answers
5 views

Script for Folder transfer from DEV server to TEST server

can you pls provide me the script which should like below Transfer the tar zip directory from dev server to test server Also it shoud check for chekcsum , junk charcter in the directories once ...
1
vote
1answer
15 views

Deleting unpacked tar.gz files after unpacking incorrectly

I recently unpacked a set of backup files in RHEL3 - 2.4kernel with tar via: tar -xvf backupfile It started to error out a bunch and I aborted thinking that maybe it was a gzip instead. Unpacking ...
1
vote
2answers
21 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 ...
0
votes
0answers
22 views

How do I start an application after running the installation script?

I've been looking around the internet and I can't find a direct answer to this. I've install Komodo IDE by downloading the .tar.gz file (from http://komodoide.com/download/) and using the tar command ...
0
votes
1answer
17 views

Target directory structure for tar different than original directory structure

Is there any way to set a different target directory structure than the orignial directory structure the tar archive was created from without creating it by hand? For example, I have many files in a ...
0
votes
1answer
34 views

Does Killing A Bash Process Affect Children Processes [duplicate]

The Scenario I'm automating backups via a bash script. The script is executed via cron. The script archives directories recursively using tar, and then rsync's them to the remote host. Here is a ...
0
votes
1answer
23 views

tar: backup before overwriting

The cp command has a feature not well-known to everybody that it can backup before overwriting the target file. Does tar has such feature as well during restoring? I saw an option of --backup, but ...
1
vote
1answer
19 views

What happens when directory contents change during tar?

I have a large directory that I'm taring. It takes a long time and I was wondering what happens when the directory contents change whilst tar is still doing its thing.
0
votes
2answers
34 views

Determine type of archive file in Linux

I have an archive file with .tar.gz as extension grabbed from http://www.oracle.com (it is the Java Runtime Environment). I tried to decompress it using tar -xvf and tar -zxvf and it says gzip: stdin: ...
0
votes
3answers
42 views

decompressing a 50 GB archive to a 100 GB drive

So I moved hosts today and I put all content from the old host into a single archive. The archive took 20 minutes to compress and one hour to transfer the tar file to the new host (Linux CentOS ...
0
votes
0answers
10 views

tar: re-extract files with a different size on disk

I have some gigantic tarballs that I was extracting, then cancelled mid-extraction, so the files from the .tar file all exist on disk but are not all the right size. Is there any way to: (1) Have ...
1
vote
1answer
34 views

Change root folder name in tar.gz file

I have a tar.gz file, specifically: http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz. I am going to download this, change it and stick it in my own repository. I wish to ...
0
votes
0answers
12 views

Apache compilation from source followed by php compilation as DSO and suphp. Pull up a phpinfo file under both configurations

I've followed all the steps specified here. I've done the following steps as per the link: Compile apache from source (using httpd-2.2.24.tar.gz, apr-1.4.6.tar.gz, apr-util-1.5.2.tar.gz) Compile ...
0
votes
1answer
35 views

Why is tarball being recognised with .tar extension in GET Request

So I have a question about header requests on filetype.. Not sure of the best way to phrase the question, so I will explain what I have done. Created a tarball on a server, tar-cvf alle.tar.gz ...
0
votes
1answer
15 views

Create a tarball of absolute file path

I need to create a tgz of files with their absolute file names. The problem is: the receiver of the tgz expects (which is a embedded product based on linux) a root hierarchy like this (displayable ...
0
votes
0answers
98 views

Installing Eclipse for linux (64 bit)

So I am trying to download the latest version of eclipse from the link provided by eclipse.org I am using Ubuntu 14.04 64 bit. There is a package available in the software repositories, but it is ...
0
votes
0answers
19 views

Archive directory system with compression for subdirectories - dar?

I have a large (~100GB uncompressed) collection of files that I want to store in < 2GB chunks for backup on a Windows Server based storage system. I'm running Ubuntu on my workstation. The data ...
0
votes
1answer
44 views

Tar withour directory structure and exclude folders

I am trying to create a tar file to exclude certain folders and then I want to have a tar file without the parent directory structure. I am able to exclude folders, but when I extract I see path from ...
0
votes
2answers
151 views

Extracting a *.tar.bz2 file?

I always used to use this command to extract files from a bzip2 tar ball: tar xjvf file.tar.bz2 But right now on Ubuntu 14.04, I get this error: tar: Conflicting compression options Try 'tar ...
0
votes
2answers
280 views

Cannot decompress .tar.xz file, getting “xz: Cannot exec: No such file or directory” from tar

Per How do I uncompress a tarball that uses .xz?, I tried tar xf php-5.6.0RC4.tar.xz and tar -xJf php-5.6.0RC4.tar.xz and in both cases I get the following: tar (child): xz: Cannot exec: No such file ...
1
vote
1answer
48 views

Running find…exec tar czvf only archives one file…need all files

When attempting to run find . -iname "*.gz" -mtime +7 -exec tar czvf all_gizip_$(date +%Y-%m-%d).tar.gz {} \; I get the list of files ./corosync.log-20140620.gz ./corosync.log-20140618.gz ...
1
vote
0answers
20 views

Why is tar|tar so much faster than cp?

For recursively copying a directory, using tar to pack up a directory and then piping the output to another tar to unpack seems to be much faster than using cp -r (or cp -a). Why is this? And why ...
0
votes
1answer
81 views

tar -czvf with no output file

Say you run tar -czvf some_folder_here and don't actually specify an output file, like tar -czvf some_output_file.tar some_folder_here. Where does the file go? I just ran this by accident, and the ...
0
votes
3answers
86 views

Create archive with hidden files and folders creates a . root entry

I am trying to archive a project folder with hidden files and folders, and I get one with a root entry of .. It's annoying. Typically : tar -czf $ARCHIVE_NAME -C $DIR . will create an archive like ...
-1
votes
3answers
257 views

Breach on Ubuntu 14.04

I am using ubuntu 14.04 and I want to install new browser http://breach.cc/ I've downloaded zipped file. but I do not know what I do after this? Can anyone help me?
3
votes
0answers
43 views

Compressed file with a header containing all files within it, at the beginning of the file

I have noticed that most files resulting from a compression / archive process do not have a list of the files contained at the beginning of the resulting file, but rather at the end of it. For ...
0
votes
0answers
382 views

Java plugin doesn't work in Chrome in Ubuntu ā€” how can I fix this?

I have Ubuntu 14.04 LTS (64 Bit) and Chrome Version 35.0.1916.153. I downloaded jre-7u60-linux-x64.tar.gz and extracted it in /usr/lib/java/ Then I created a directory named 'plugins' in ...
0
votes
1answer
63 views

extracting all files in tar to a remote server

Here, it extracts the specified file in a remote machine. tar -xzOf file.tar.gz file_you_want_to_extract | ssh user@host 'cat > /path/to/destination_file' My requirement is that I want to extract ...
0
votes
1answer
15 views

Compressing with BarCat?

I'm having an issue using Barcat to show a dialog while compressing? Wondering what the exact syntax is? here's a link to Barcat things I've tried are bar -n apache24.tar.xz |tar -Jcf - bar -n ...
0
votes
0answers
80 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
61 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
85 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
28 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
50 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
64 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
114 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
23 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
16 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
59 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
38 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). ...
1
vote
0answers
25 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
33 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
30 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 ...
0
votes
1answer
2k 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
62 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
509 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
75 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
69 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
78 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 ...