a utility to archive files into a sequential stream, then commonly placed into one file on disk (previously tapes, hence the name, Tape ARchive)

learn more… | top users | synonyms

90
votes
5answers
129k views

How do I uncompress a tarball that uses .xz?

I'm used to extracting tarballs with a -xfz flag, which handles gzip and bzip2 archives. Recently I've run into a .tar.xz file and I would like to uncompress it in one step using tar, how can I do ...
65
votes
1answer
117k views

How to extract files to another directory using 'tar' command?

I think tar archive.tar /users/mylocation will work. But it doesn't. How can I do that?
21
votes
3answers
11k views

What's the best way to use parallel bzip2 and gzip by default?

Bzip2 and gzip only use one core, although many computers have more than one core. But there are programs like lbzip2, pbzip2 and pigz, which use all available cores and promise to be compatible with ...
16
votes
3answers
31k views

In SSH, how do I mv to my local drive?

Probably bad searching/not knowing the terminology, but: I've managed to ssh into my webhost's directory for me, and tar the webapp I want to back up and download. But when I try to mv to ...
15
votes
2answers
437 views

What is the difference with all the different types of .tar archives?

Could anyone tell me what is up with so many archives, and how are they differ? There's at least five that I can think of, .tar.tz, .tar.gz, .tar.bz2, .tar.lz, .tar.z Which is best for what ...
12
votes
3answers
2k views

Any linux command to perform parallel decompression of tar.bz2 file?

I have a rather large file (~50GB) and it takes some time to run tar xvf file.tar.bz2 on it. I'm aware of programs that can do parallel compression for bzip2 files but unaware of programs that can ...
11
votes
1answer
366 views

Restoring a Unix Tar File with Ubuntu

I have all of these old DDS3 and DDS4 tapes that I need to restore the files off of. The only information that I really know is that they were put on the tapes about 10 to 20 years ago using Digital ...
9
votes
3answers
1k views

Using tar and rsync for high availability

I have Ubuntu cloud servers running which I don't have direct access to but with ssh. I'm using 'tar' to clone or to have high availability of this server. I followed the tutorial from the link [link ...
8
votes
1answer
11k views

How do I extract a specific file from a tar archive?

Hi is possible to restore a single file from the .tar backup ? I dont want to restore total backup . i just want to restore one single file from the backup .
7
votes
2answers
6k views

How can I update a tar.gz file?

I have created a tar.gz file (using the GUI, not the command line). How can I update it with a command that new files are added and modified files are updated, too?
7
votes
2answers
255 views

Extract only the contents of an archived directory from within an archive

The Situation I am extracting a CMS from drupal-7.15.tar.gz to /var/www. When extracted normally (with tar -xvzf filename.tar.gz) the files end up in /var/www/drupal-7.15/ The Goal I want the ...
6
votes
2answers
805 views

Can I safely remove a tar archive after extracting it?

Or am I supposed to save them for some reason?
5
votes
3answers
10k views

how to extract tar.7z files from command line? [duplicate]

Is there a way to extract files of tar.7z format using command line tools in Ubuntu?
5
votes
2answers
107 views

What is going on with my TAR script?

This might do better at StackExchange but I use Ubuntu as my file server. So I'm trying to use tar and gzip to only backup the last 6 months of changes on my file server and it isn't working. It ...
5
votes
2answers
6k views

Encrypt tar.gz file on create

I have a script which creates a nightly backup of several directories. It is created using tar -czf, and the destination tar.gz file path is on a mounted network directory. The resulting file is ...
5
votes
1answer
295 views

How to archive with ignoring files larger than 100MB

I'm trying to archive files with tar and ignoring files larger than 100MB. Is that possible? PS: Not have to use tar.
5
votes
1answer
46 views

How can I build an installer by tracking filesystem changes?

Ages ago I used to package software on Windows using InstallShield AdminStudio. I used it for building customized installers for company applications from existing app installers. I'd like to do ...
5
votes
3answers
1k views

How do I install the Sun Java Development Kit (JDK 7)?

How to install JDK 7 on Ubuntu? The installation should be with the tar archive. I know the basic installation with the bin, but how to do with only a tar archive?
4
votes
4answers
607 views

What is the difference between different “compression” systems?

I've always used TAR and ZIP for compression, but recently I have heard about the *.Z compression algorithm. This brought up a question for me: With all of these compression systems, which one is ...
4
votes
3answers
857 views

What's the difference between a compressed folder (with files) and a compressed Tar archive?

I don't understand the use of TAR. My understanding is it pulls together many files into one file. But doesn't putting files in a folder do this? Using ZIP, I put files I want to archive in a folder ...
4
votes
2answers
2k views

Is there a way to `tar` extract without clobbering

Is there a way to tar extract without clobbering? I am installing 12.04 and want to restore my data from 10.10. Anything 12.04 specific I would like to keep, that is I do not want the tar'd 10.10 ...
4
votes
2answers
249 views

how would I create a tar without using sudo?

If I tar my /home/username and create the .tar file in /home/username, then I get an error of the sort . file changed as we read it probably because the directory file itself is changing due to the ...
4
votes
2answers
3k views

How do I create tar.7z file from the command line?

I would like to zip up my homework from last year. How do I tar and zip the whole folder from command line Ubuntu (I don't have GUI).
4
votes
2answers
19k views

Compress in .tgz

I want to compress files in .tgz. I know how to make tar.gz(with tar and gzip) and some people say it is almost the same, but I need to make a .tgz, how??
4
votes
2answers
1k views

why does tar . see hidden files but ls . does not?

Why does tar cvpfz /tmp/backup.tgz . backup hidden files? (Note ls . does not see the hidden files. Trivia: there are ways to see hidden files such as with ls -a but this is just trivia. The ...
4
votes
1answer
10k views

How to install a tar.bz2 package

How can I install a tarbz2 package. Example: I have downloaded firefox 8 tar.bz2 . I want to know a general method for installation of tar.bz2 package.
4
votes
1answer
148 views

Can I tar the whole system, clear everything and untar it back?

I have to do the whole system cleanup, deleting and recreating all partitions. I'm wondering if I could simply tar all my / (excluding proc, sys and mnt) into archive and then untar it into clear ...
3
votes
2answers
2k views

How to make a bash script generate a new filename every time it's run?

I'd like to make a .tar file of a particular directory every day of the week. The way I'd like to do it is with a bash script making a tar file every day with crontab. I was wondering, is there a ...
3
votes
4answers
171 views

How to tar the n most recent files with spaces in filename?

I am trying to create a script that foreach directoy in the folder folder, only the n most recent files are to be compressed. However, I am having trouble with the multiple word files. I need a way ...
3
votes
2answers
6k views

sudo tar cvpzf exiting with failure due to previous error

I looked at the other question addressing this issue but I think I might have a different setup. I too am trying to backup my Ubuntu machine, but here is the difference. I used Wubi to install Ubuntu ...
3
votes
3answers
198 views

Creating tar fills system cache

My situation is pretty simple: I backup-ed some of my documents and put them on a NAS and since I rather transfer one big file instead of million small ones, I created a tar tar cf ...
3
votes
3answers
3k views

Installing μTorrent

Hello i'm trying to install uTorrent to my Ubuntu 11.04 I'm downloading it from here . But it's a .tar.gz file. I'm untaring it with tar -xzvf utorrent-server-3.0-25053.tar.gz command. But there ...
3
votes
3answers
2k views

Installing software without Ubuntu Software Center

I have a file downloaded from the Internet. To be specific I downloaded Code::Blocks from its official site. The file name is codeblocks.tar.bz2. If I don't have Internet connection and also ...
3
votes
1answer
58 views

What is the difference between a deb package and a binary package?

I am not sure if it's true to say when you download a package from Ubuntu repository, then that it will be a debian package and if you download only a tar file and use make command to install it, than ...
3
votes
1answer
50 views

Move GZ archives with specific content

After a restoration of my HDD with PhotoRec I have a folder with 36,500 GZ archives. Of those, around 200 are very important for me. Each of these archives contains exactly one TAR archive. These TAR ...
3
votes
1answer
10k views

tar Exiting with failure status due to previous errors

I am trying to backup my Ubuntu workstation by the help of this guide and are running into trouble as the tar command outputs Exiting with failure status due to previous errors. Here's what I ...
3
votes
1answer
242 views

Removing a tree

CODE EDIT So now that I'm off work I can do a little coding in my free time. The way that I think I want this to work is take a tarball (what I would normally extract to a folder anyway) and compare ...
2
votes
2answers
11k views

How to install TestDisk from source

I have just come downloading a software called testdisk-6.14-WIP.linux26.tar.bz2. Therefore I'm wondering how to deal with the installation.
2
votes
1answer
1k views

Can't un-tar LibreOffice 4 download

I've tried this guide How do I install LibreOffice 4? But I get this message Can someone please explain why this is happening? And can someone tell me how to download it?
2
votes
2answers
9k views

cannot install application from source using tar.gz archive

I tried to install utimer (https://launchpad.net/utimer) by following the below steps. $ tar -zvxf utimer-0.4.tar.gz $ cd utimer-0.4 /utimer-0.4$ ./configure /utimer-0.4$ ls aclocal.m4 autogen.sh ...
2
votes
4answers
144 views

Which kind of installation files should you prefer - .deb or tarball files? And why?

I have just starting Ubuntu as my primary OS and everytime I have to install something I generally try to find .deb files as that seems convenient, but someone on another forum told me I should always ...
2
votes
1answer
121 views

What happens when I drop a file on archive in Nautilus?

I had this file structure: 2000/ 001.txt 002.txt 003.txt ... 2001/ ... 2002/ ... ... 2011/ I guess file structure doesn't matter, but anyway... So folders are representing couple of ...
2
votes
1answer
505 views

backup by compress tar each directory

I’m looking for a method to scan a directory (not recursive) and tar it using the original folder name, and then delete the folder (so I will have only the folder compressed) Anyone has the command ...
2
votes
3answers
56 views

Overwriting files when extracting from a tar archive

I play OpenTTD. There are three versions available and I want to have all three; stable, testing and nightly. I downloaded and compiled the source code for all three with no problems. The issue is ...
2
votes
3answers
14k views

How to unzip tgz file into ubuntu 12.04?

I am receiving error message as: tar -zxvf OVM_EL5U3_X86_EBIZ12.1.1_DB_VIS_PVM.tgz.1 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now file ...
2
votes
1answer
130 views

Troubles Saving tar.gz

When trying to package .tar.gz files from folders (backup) using this script tar -zcvf desktop.tar.gz /home/USER/Desktop/ It's suppose to be saved as 'desktop.tar.gz' and its a copy of ...
2
votes
1answer
162 views

Cannot delete a tar.bz2 file from pendrive

I want to delete a tar.bz2 file from my pendrive. I tried shift+delete, but nothing happened. Then in terminal I tried sudo rm command, I got the following error - rm: cannot remove `avi.tar.bz2': ...
2
votes
1answer
403 views

Piping with SSH and split the file

Im using tar zcf - stuff | ssh user@server 'cat > data.tar.gz' Is there a way to split the file on transfer? Something like this: tar zcf - stuff | split -b 5G | ssh user@server 'cat > ...
2
votes
1answer
2k views

I am trying to install a compressed package ending in .tar.gz and I am getting an error saying that it is not in the right format,

I am new to Ubuntu and after doing some research I still can't figure what I am doing wrong. I am downloading the a package ending in .tar.gz,then I when I try to use; tar -xvf ...
2
votes
0answers
238 views

How can I tweak this split-tar-gz-archive script?

I came across this shell script that can be used to split an entire directory across multiple compressed files. I am interested in making a minor tweak to this script. Lets say I have n GB of files ...