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

learn more… | top users | synonyms

1
vote
2answers
230 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 ...
1
vote
2answers
299 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
82 views

in place refreshing of a large tar.gz?

I have a directory with about 300Mb of code and data, and I need to regularly change a few lines of code in a few of the files and repackage the directory into a new project-version.tar.gz. It takes ...
1
vote
4answers
2k views

Does tar preserve links? [duplicate]

Possible Duplicate: How can I tar ball a directory hierarchy with soft links in linux I am using tar to copy files and directories from a Solaris machine to a Linux machine. Does Tar ...
1
vote
1answer
4k views

tar error message: “stdin: not in gzip format”

I'm having difficulty with tar on a headless Ubuntu Server 12: ubuntu@domU-12-31-39-02-C0-98:~$ wget -o dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86" ubuntu@domU-12-31-39-02-C0-98:~$ ...
1
vote
1answer
810 views

Mounting Fedora ISO DVD and then copy the full DVD structure locally

I need to recreate in a local folder called /distro/fedora/ the full directory tree (including eventually hidden files, symlinks, etc.) contained in the .iso file just downloaded ...
1
vote
3answers
2k views

Installing software from tar.gz on Linux (Ubuntu) - where to start and where does it end up?

I am usually a Windows user, but I have decided to check out Django, and was recommended doing this on a Linux box. I downloaded the Django-1.2.5.tar.gz, and by default it ended in the tmp folder. ...
1
vote
2answers
585 views

Split an[d] archive large backup file in constant working space

I'm currently attempting to use tar and split to get DVD-sized archives of my Time Machine backup database. It's going to work this time, as I have a partition on my external drive large enough to ...
1
vote
1answer
328 views

untarred files on server has different owner

I am creating a tar gzipp'ed archive on my local machine (as user1) using the following commands: user1@devmachine:~/$ tar czpf dir.tar.gz thedirectory on the server, I untar it (as user 2) ...
1
vote
2answers
81 views

Data Archiving vs not

For the sake of data integrity, is it wiser to archive your files or just leave them unarchived. No compression is being used. My thinking is that if you leave your files unarchived, if there is ...
1
vote
4answers
256 views

Zip only public directory

I've a lot of websites (100+ directories) I want to create a unique zip with only public subdirectory. My structure now is like: - Site 1 --- app --- tmp --- log --- public - Site 2 --- app --- ...
1
vote
2answers
543 views

Creating a compressed archive with “tar” over the network

I want to copy a local disk image to another computer in the local network. It is a large directory (around 15 GB) and to speed it up I use this little trick: cd /Volumes/myserver tar -cvzf ...
1
vote
2answers
1k views

Tar: How to ignore the archive itself

I was planning to do a quick backup of my website. So I tried to run the following command in my webroot: tar cvfz backup.tar.gz . That seemed to be working nicely for a while. Until I discovered ...
1
vote
1answer
1k views

Is it possible to continue incomplete tar jobs?

Is it safe to continue an incomplete tar job? Background: I was doing tar -czvf backup_20091013.tar.gz directory1 directory2 ... > tar_log_20091013.txt and to be safe, I put the shell window on ...
1
vote
3answers
2k views

programmatically extract tar.gz in a single step (on windows with 7zip)

PROBLEM: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: stackoverflow question for tar-gz. My question is almost the same, but ...
1
vote
1answer
39 views

tar reverse of '--to-command', or: compressing tar entries individually, or: tar with plenty of large files

I would like to create tar gzip archive, but do it the reverse manner of what is most commonly done -- have the files in the archive be compressed individually rather than compress the entire archive: ...
1
vote
1answer
20 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.
1
vote
2answers
768 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 ...
1
vote
1answer
50 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
2answers
93 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 ...
1
vote
1answer
28 views

How can tar backup access timestamps

How can tar backup file access timestamps so it is included somewhere in the *.tar file? I couldn't find this in the docs, the closest was --atime-preserve, which preserves access times on the source ...
1
vote
2answers
201 views

List contents of large tar archive quickly

I need to list the contents of a fairly large (gzipped) tar archive (about 37GiB). tar -ztvf archive takes forever. Is there some way to get this listing quickly? Possibly by only listing contents ...
1
vote
1answer
169 views

How to create and split a tar archive and send the results to my server?

I would like to create a .tar backup of some files on my laptop and send them to my server. My laptop's HDD is not large enough to hold both the original and backup copy of the file. I would like to ...
1
vote
2answers
107 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 ...
1
vote
1answer
940 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 ...
1
vote
1answer
390 views

How to use Pipe Viewer (pv) for measuring compression progress?

I've been trying to track the progress of the data in a pipe, specifically in a large init script for a minecraft server. How would I go about using pv to get an accurate readout of progress? I've ...
1
vote
1answer
921 views

update file in tar

for Linux tar command: tar uf test.tar test.txt but for *BSD bsdtar command option u = r = append,that is can't update file ,only can append file and also ,I try compiled libarchive , proved ...
1
vote
2answers
468 views

Archive software for big files and fast index

I'm currently using tar for archiving some files. Problem is: archives are pretty big, contains many data and tar is very slow when listing and extracting. I often need to extract single files or ...
1
vote
1answer
80 views

GNU tar symlink preservation on case by case basis

I'm trying to create a tarball, and there is one specific file that I need to preserve as a symlink in the tarball. However, there are a lot of other symlinks that I can't preserve as symlinks, ...
1
vote
2answers
98 views

How to create an archive without hierarchy

I know there are a lot of questions that seems identical, but I haven't found so far my answer. So let's figure I'm in the current working directory : /test/ I would like to add to an archive ...
1
vote
2answers
805 views

Creating separate archives for a set of files

I have directory containing big list of files. I'd like to gzip each file of a certain mask to a separate archive. How do i do that automatically? For example here's sample directory contents: - ...
1
vote
1answer
992 views

How to ignore some folders when creating a TAR file in Linux?

I have a folder with 85 subfolders. I want to make a customized .tar file, meaning that I want to ignore some folders. How can I do that?
1
vote
1answer
63 views

make: my own simple repository

I have got an account on a server at my university. I want to share a program code with another student. I thought I should put it on my github account. Unfortunately, I cannot because the code is ...
1
vote
2answers
948 views

tar compare or diff command line

What is wrong with this? tar --diff --gunzip --file=/media/disk/filename.tgz This is GNU tar 1.23 on Ubuntu. The complaint is gzip:stdin:input/output error. The following just hangs and there is ...
1
vote
1answer
93 views

Ignoring path while archiving with TAR

I have a file that contain list of files I want to archive with tar. Let's call it mylist.txt It contains: /path1/path2/file1.txt /path1/path2/file3.txt ... /path1/path2/file10.txt What I want to ...
1
vote
1answer
228 views

How to UnTar Wordpress contents to my document root without “wordpress” folder?

The contents of a Wordpress Tarball are all contained within a single directory called "wordpress". I would like to upload the archive to my server (CentOS) and UnTar all the files directly to the ...
1
vote
2answers
487 views

Removing folder structure when making a tar from a folder

Ok I don't really want to waste any more time on investigating this but I do want to offer a .tar option for download instead of just zip. $archive = ...
1
vote
2answers
202 views

Linux/Ubuntu: How to make archive when there are too many files (6GB = 3 000 files)?

So, how to make a few archive parts or how to make archive for some part of files (0-100 items, than 1000-200 items etc)?
1
vote
2answers
3k 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 ...
1
vote
1answer
114 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 ...
1
vote
2answers
844 views

zip file on ubuntu without getting a cpgz file on extraction

I get a cpgz file when trying to extract the contents of a file created on an ubuntu system. Tried with 7zip, rar, zip, tar, nothing works... I really need to get this to work, so if somebody had a ...
1
vote
2answers
2k views

MinGW tar compression problem

I am unable to get the Mingw tar to work with compress files. It does not filter through the proper compression utility. However, tar will work if I manually uncompress the file first. I have tried in ...
1
vote
1answer
34 views

cpio VS tar - what the best archive solution in order to compress hundred of directories to one file

in my Linux machine under /var/Recording directory. I have hundreds directories and each directory there are also directories and files include hard links and soft link . I want to compress all ...
1
vote
1answer
23 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
1answer
85 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 ...
1
vote
1answer
95 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
31 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 ...
1
vote
1answer
74 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 ...
1
vote
0answers
30 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 ...
1
vote
1answer
33 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 ...