Top "Tar" questions

An archiving program for storing and retrieving files as a collection with support for data compression.

Shell command to tar directory excluding certain files/folders

Is there a simple shell command/script that supports excluding certain files/folders from being archived? I have a directory …

linux shell archive tar
How do I tar a directory of files and folders without including the directory itself?

I typically do: tar -czvf my_directory.tar.gz my_directory What if I just want to include everything (including …

archive tar gzip
How to uncompress a tar.gz in another directory

I have an archive *.tar.gz How can I uncompress this in a destination directory?

unix tar gzip
How to extract filename.tar.gz file

I want to extract an archive named filename.tar.gz. Using tar -xzvf filename.tar.gz doesn't extract the file. …

linux file gzip tar
tar: add all files and directories in current directory INCLUDING .svn and so on

I try to tar.gz a directory and use tar -czf workspace.tar.gz * The resulting tar includes .svn directories …

linux bash design-patterns tar
Tar a directory, but don't store full absolute paths in the archive

I have the following command in the part of a backup shell script: tar -cjf site1.bz2 /var/www/site1/ …

linux bash backup tar
Excluding directory when creating a .tar.gz file

I have a /public_html/ folder, in that folder there's a /tmp/ folder that has like 70gb of files I …

linux gzip tar compression
How to check if a Unix .tar.gz file is a valid file without uncompressing?

I have found the question How to determine if data is valid tar file without a file?, but I was …

gzip validation tar gunzip
Utilizing multi core for tar+gzip/bzip compression/decompression

I normally compress using tar zcvf and decompress using tar zxvf (using gzip due to habit). I've recently gotten a …

gzip tar bzip2 bzip
gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now

I have a bash script that creates a tar.gz and encrypts then sends to drive. However I cannot open …

linux bash gzip tar