0
votes
1answer
42 views

Piping stream into tar on FreeBSD

I am trying to pipe a tar/gzip archive into tar to decompress it. The script I have is part of a self extracting installer, where my archive is appended to the script. This works fine on linux, and ...
0
votes
1answer
60 views

Unable to Unzip a tar.gz.bz2

We run daily backups of our MySQL server. Using the following script: [ ! -d "${DEST}" ] && mkdir -p "${DEST}" FILE=${DEST}/mysql-live.${NOW}-$(date +"%T").tar.gz.bz2 # get around error ...
-2
votes
1answer
73 views

Resume a tar command that was stopped

I am trying to tar a huge directory (with about 600GB) and sometimes my SSH conection drops and I need to execute the tar code again and my linux overwites the previous file beginning all the tar ...
0
votes
1answer
85 views

find and delete files of a certain type inside a tar.gz file

Is there a way to not only find but also delete any .gz files inside a .tar.gz file? I found this link but I wouldn't know how to modify it to make it able to delete found files.
2
votes
1answer
328 views

Gzip command to produce exact same output than tar -cvzf?

I did thought the following commands where equivalent, but they produce different checksums: tar -cvzf ... and tar -cvf ...; gzip ... does not produce the same output. sha1sumdiffers. What would be ...
0
votes
1answer
48 views

What would be the outcome of tar and untar a constantly changing folder via ssh

I have used this command on a big-sized (TB),constant changing directory with sub-folders and files. $ tar c dir/* |gzip - | ssh user@host 'cd /dir/ && tar xz' What would be the outcome at ...
0
votes
1answer
177 views

How to unpack specific directory from /home backup packed with pigz+tar+gzip

Normally I'm extracting my copies with: pigz -dc backup2_week1_system.tar.gz | tar xzvf - Now I want to unpack specific directory from /home/user for example admin
2
votes
3answers
793 views

tar gzip slowing down server

I have a backup script that: compress some files generate md5 copy the compressed file to another server. the other server finishes comparing MD5 (to find copy errors). Here it's the core script: ...
-1
votes
3answers
2k views

Combine two or more compressed files

I have 2 gz files those I need to merge into one -- that is to say I want to combine two .gz files into one such that when I extract the combined file I get a single file containing the concatenation ...
0
votes
3answers
945 views

zip does not work for big files

What is the best way to compress a file if it is more than 4 GB in size? I am using the following for last several months. mysqldump --all-databases | zip > mybackup.zip Today I am got an ...
1
vote
1answer
387 views

Why does tar -c dir | pigz > /mnt/nfs/dir.tgz use network, then cpu in cycles instead of both at once (with one bottlenecking)

I want to transfer a multi-terabyte directory to an nfs mounted directory most efficiently over a 1Gbit network (probably the limiting factor) 3 options - tar and compress in place, then copy copy, ...
0
votes
2answers
355 views

CRC Failed, File is broken, using php system command to tar a directory

Can anybody see a problem with the below PHP code? Or have any ideas to troubleshoot a solution as to why whenever I download the backup file.tar.gz and try to open it using 7zip on windows... that I ...
0
votes
3answers
119 views

Uncompressing gzip file

I have compressed a folder using following command: tar czvf arch.tar.gz dirname/ When I try to uncompress it using following command tar xvfz arch.tar.gz then it uncompress folder but contents ...
12
votes
2answers
4k views

Fastest way to extract tar.gz

Is there anyway to extract a tar.gz file faster than tar -zxvf filenamehere? We have large files, and trying to optimize the operation.
1
vote
1answer
118 views

gzipped tar archive file paths

I am creating a tar.gz file containing some files and folders as follows: /bin/tar cfz /usr/local/backups/mybackup-${DATENAME}.tar.gz /usr/local/backups/db-${DATENAME}.sql.gz ...
0
votes
3answers
198 views

When I extract .tar.gz all of the files within the folders have the .gz suffix

I have recently begun using a VPS and am learning linux along the way. I have compressed a folder using tar, then I gzipped it and used scp to send it to my server. When I decompress using tar -zxvf ...
4
votes
4answers
2k views

How to manually extract a backup set made by duplicity?

I have a set of files on my webserver produced by duplicity software: duplicity-full.20110315T085334Z.vol1.difftar.gz duplicity-full.20110315T085334Z.vol2.difftar.gz ...
4
votes
3answers
3k views

How to list content from a tar file without recursion?

I've a tar (gz, bzip) file and want to see its content, but not recursively. This is: The "first level" in the file. I already know how to see content: tar -ztf file.tar.gz But it's recursive!! ...
0
votes
4answers
975 views

How to tar.gz *.php, *.txt, *.inc, *.js, *.css, *.php3 files?

I want to backup my server, but not bother with images /videos etc. how can i tar.gz all those types of files i want (basically text files)?
0
votes
2answers
372 views

What are the command-line options for un-tarring a tar.gz file to a specific directory?

This is one of those things I don't quite do often enough to memorize. I thought it would be nice to have the answer here so I (and maybe others with as poor a memory as me) can star it. What ...
0
votes
2answers
3k views

TAR command to extract a single file from a .tar.gz

Does anyone have a command syntax for extracting 1 file from a .tar.gz that also allows me to place the extracted file in a certain directory? I have Google'd this and get too many variations with a ...
2
votes
3answers
6k views

“tar cfz” versus “tar cf - | gzip”: are they different? (or how to improve a backup)

I want to speed up my backup done with tar cfz, the common way to do it. But day by day my backed up files grow so it becomes slower. I was thinking to take advantage of the several cores available ...
37
votes
7answers
39k views

mysqldump to a tar.gz

Usually after dumping a MySQL database with mysqldump command I immediately tar/gzip the resultant file. I'm looking for a way to do this in one command: So from this: mysqldump dbname -u root -p ...
2
votes
3answers
6k views

Linux gzip multiple subdirectories into separate archives?

How would I be able to compress subdirectories into separate archives? Example: directory subdir1 subdir2 Should create subdir1(.tar).gz and subdir2(.tar).gz