1
vote
2answers
58 views

How to maintain up-to-date snapshot tar archive efficiently?

I have a large directory of files and I would like to maintain a single compressed tar archive that I can server over http containing all the files which is brought up to date once each day. Many of ...
2
votes
2answers
69 views

Segmenting mysql backups using tar

In addition to using mysqldump, I've been backing up my mysql server by tarring up /var/lib/mysql for redundancy and convenience. This directory includes ibdata, ib_logfile0, and ib_logfile1 as well ...
0
votes
2answers
903 views

Not possible to extract tar.gz archive in Centos

I have just uploaded tar.gz archive to my Centos server from my home Windows 7 computer. Before that, it was extracted from .zip archive. When I try to extract it: tar -xvf file.tar.gz gunzip ...
-2
votes
1answer
43 views

Changing tar parameters

I'd like to change the command I'm actualy using to put files in a tar archive in order to achieve this: 1) Remove directories tree from the archive (actually the .tar.gz file mantains the tree of ...
-4
votes
3answers
198 views

Any reason for «tar: Can't specify both -x and -t»? [closed]

Question is due curiosity mostly… — it's kinda strange and awkward limitation considering tar's inability to list content w/o reading the whole (sometimes huge) file.
2
votes
1answer
82 views

Linux - Splitting a backup into two steps

I create a tarball using tar zcf arhive.tar.gz dir/ and this works ok. Now I wanted to split this into two simple archives, one only for images, the other -- for everything else. It seems that ...
0
votes
2answers
275 views

Extract a selected file from a .tbz file

I am on CentOS server. I have to download a .tbz file every day which is of 3GB in size and then i have to extract it and use inner files for further process. There are 48 files in the .tbz extracted ...
2
votes
2answers
4k views

How to exclude files from TAR archive using regular expressions?

I have a simple question, yet I can't find or solve the answer. I want to make a tar archive, but I want to exclude some files from it using regular expression. Example of the file to exclude is ...
1
vote
2answers
266 views

Linux: How do I archive select file extensions in an unknown tree

What is the best way to archive select file extensions in an unknown tree. I cannot use exclude options in tar/gzip/rsync as it would be impossible to exclude all possible extension variations. ...
2
votes
3answers
328 views

Which tar file format should I use?

tar can create the archive in different formats. GNU tar, ustar, pax, v7. What would be the best for long time archiving? Is there significant differencies in these formats? I would use the best ...
1
vote
1answer
365 views

Tar: avoid archiving of files larger than certain size

I want to archive files (with tar) which are below 3 MB in size. But I also want to retain the directories in which those files exist. (so I cannot use find command). I just want to avoid the files ...
3
votes
3answers
1k views

cpio VS tar and cp

I just learned that cpio has three modes: copy-out, copy-in and pass-through. I was wondering what are the advantages and disadvantages of cpio under copy-out and copy-in modes over tar. When is it ...
0
votes
2answers
125 views

How do i list the contents of a tar file

I tried using -t like the man says, but it just waits. Example $ tar -t archive.tar (nothing)
5
votes
8answers
2k views

Is there a smarter tar or cpio out there for efficiently retrieving a file stored in the archive?

I am using tar to archive a group of very large (multi-GB) bz2 files. If I use tar -tf file.tar to list the files within the archive, this takes a very long time to complete (~10-15 minutes). ...
1
vote
4answers
3k views

Tar command Solaris version for files larger than 2 GB

We have several files larger than 2GB tared using tar command UNIX version (SunOS 5.5 with last change: 1995!). There is "E" flag to tar files > 2GB. This is how it was been done: rsh sun_server tar ...
0
votes
2answers
3k views

How do I fix a broken tar file?

I have a 46GB tar file containing an .img of an old partition. Unfortunately, it produces a 0-byte file when un-tar'ed. The tar file was produced on linux, I'm on windows now. I have tried WinRAR, ...