Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tar]

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

0
votes
0answers
21 views

Extract tar file directly to stdout or other command like partition image extractor

Let's say I have TAR file with some partition images (dd/patclone/partimage/fsarchiver/whatever) and text file with MD5 sums (of image file and original partitions). I don't want to extract the image ...
2
votes
3answers
79 views

Which archival formats efficiently extracts a single file from an archive?

Extracting a single file from a zip file is a fast operation, so I assumed this would be true for TAR as well, but I learned that even though a TAR file is without compression, it can take a looong ...
0
votes
1answer
23 views

Extract line from file in .tar.bz2 Archive

I'd like to use stdin/stdout on a single line to display the version from a file within a .tar.bz2 archive without affecting the existing archive or leaving any temporary files behind. The file only ...
1
vote
2answers
61 views

How to extract a tar in a tar

I have a tar file with tar files in it. They are rather large so I was wondering if it is possible to extract a specific tar in the tar file directly. Is that possible? How?
0
votes
2answers
26 views

unzip partial folder of tar file from url

I have a url which leads to a high size tar file, around 200gb , I need to extract one folder of that file in my linux system. Because of the large file size I don't want to download the entire file ...
0
votes
0answers
33 views

How to force Gnu tar to put file sizes in extended pax header?

I want to test some custom tar parsing code that needs to be compatible with big files. Big file sizes are recorded in a pax header, but it's not practical for me to generate a big tar file for ...
0
votes
2answers
33 views

Extract .tar.gz files in different subdirectories

i have phenological data of different tree species, but they are saved by the bigger Treegroup. The output of find . -name *.tar.gzis: ./Tilia/PEP725_DE_129_070.tar.gz ./Tilia/PEP725_DE_129_071.tar....
0
votes
1answer
46 views

Compress and provide single-file access to 10 million files [closed]

I have ~10 million small text files and I would like to solve the following tasks: compress all the data; put it all into 1 file to transfer over the Internet; be able to access each single file ...
1
vote
1answer
47 views

Incremental backups with tar where current file has most recent and previous files only have different versions

I am somewhat familiar with how to use tar's --listed-incremental flag to take incremental backups. The end result is a backup-0 file that has the first full back-up and then backup-1, backup-2, ..., ...
2
votes
0answers
25 views

Why is my .tar.gz larger than the sum of the separately compressed files in it?

I observed the following situation which is somewhat unexpected to me: I have a csv file and a corresponding txt file. Uncompressed, their sizes are 375MB and 5KB. When I compress the csv file ...
0
votes
0answers
20 views

Zipping directory while files are add

Sorry for the silly question but I cant find anything online about this. Lets say I have a directory ~100GB and I execute tar -cvf mydirectory.tar /mydirectory Zipping the directory might take ~15 ...
0
votes
0answers
18 views

compine bbcp with tar and split commande

I am trying to copy big files between tow remote servers with bbcp tool. I want to use tar command to create tarball and split it to small files during the transfer because there is no more free space ...
0
votes
1answer
62 views

How to find and tar files then delete them

I need to find files that are older than 30 days, tar and compress them and remove the ones that I already tar and compressed. I was trying to execute something like this but it does not look like ...
0
votes
1answer
49 views

How to extract a tgz which consists of many files present in multiple subfolders to another directory (ubuntu linux)

current directory ├──Folder1 ├── sub_folder1 ├──Folder2 ├── sub_folder21 ├── sub_folder22 ├── ...
1
vote
1answer
41 views

Why does my tar via ssh (command via authorized_keys) corrupt the archive?

From a backup-machine I want to pull tgz dumps of a production server. Both machines run ubuntu 16.04. Therefore, the backup-server connects via ssh and a specific ssh to to the production server. ...
2
votes
1answer
28 views

Tar: Exclude certain extensions in subfolders

I have a folder which includes subfolders which in turn have subfolders as well. I tried: tar --exclude='*.msh' --exclude='*.geo' -czvf cont.gz run-1/* to compress all files and subfolders in run-1 ...
0
votes
0answers
69 views

Cannot mknod: Function not implemented

I'm trying to untar a file in a docker container (as root) which I tar'd on my local computer. tar: ./vsql/dev/fd0u1680: Cannot mknod: Function not implemented Here is the command I'm using: tar -...
0
votes
1answer
38 views

Using tar to unpack file to directory while shell is somewhere else

I thought this would of been a simple question to answer, but everywhere I turn EVERYONE expects the tar to be in the same directory as the shell. My file is located: /tmp/my_file.tar.gz I want to ...
1
vote
1answer
79 views

Cannot Generate .tar.bz2 File

How do I make a .tar.bz2 from directory tree in Win10? Trying tar -cjf Archive.tar.bz2 www and getting tar: Can't launch external program: bzip2. Refs: Cannot Generate .tar File, https://blogs....
2
votes
1answer
184 views

Cannot Generate .tar File

How do I make a .tar from current directory tree in Win10? Trying tar -c Archive.tar * and getting tar: Failed to open '\\.\tape0'. C:\>tar -h tar(bsdtar): manipulate archive files First option ...
0
votes
1answer
478 views

How do I use 7-Zip GUI for Windows to create .tar.gz files?

How can I use the 7-Zip GUI on Windows to create .tar.gz files?
0
votes
1answer
219 views

tar extract fails with status “Permission Denied” — safe to ignore?

During an extract operation using tar I receive the following messages: tar czvf home.tar.gz home --exclude="*/public_ftp" tar: home/<redacted>/public_ftp: Cannot open: Permission denied tar: ...
0
votes
0answers
22 views

Extracting a certain directory from an incremental backup

I have an incremental backup in the format of server-name-backup_time.tar.gz and I'm trying to extract a home directory out of it with the command tar xvf server-name_**000*.tar.gz /home/user. However ...
0
votes
0answers
139 views

Open ERROR: Can not open the file as [gzip] archive

I'm rather new to Windows command prompt and am more used to Ubuntu/Mac's command prompt. I'm looking to extract a tgz file using a single command(like wget in Mac), and I tried using 7zip with the ...
1
vote
1answer
48 views

Why does gzip -c give different results than gzip?

I am writing unit tests for some code and found that a simple gzip is causing a difference in my results. Upon further investigation I found that gzip gives a different .gz file than gzip -c does. Why ...
2
votes
0answers
147 views

Update Java version, Solaris 10

I'm trying to update Java version on Solaris 10. I have downloaded a tarball jre-8u73-solaris-x64.tar.gz. Using these commands: which java /usr/bin/java gzip -dc jre-8u73-solaris-x64.tar.gz | tar xf ...
0
votes
1answer
76 views

Permissions on directories when extracting tar built from a list of files

I'm creating a tar file from a list of files with the -T option. When extracting the tar file, subdirectory permissions are root:root instead of the permissions on the directory itself? Any ideas ...
2
votes
0answers
27 views

Does tar work in depthfirst mode or breadthfirst mode

I am executing tar -zcvf on a directory which has 4 sub directories. These directories are filling up almost 1TB of space on my hard disk, and creating a tar is adding to space used since I am running ...
2
votes
1answer
186 views

Fastest way to compress (i.e. archive into a single file) millions of small files on a powerful cluster to speed up transfer of files

IMPORTANT NOTE: Compression is NOT the goal, archiving/taping (packing all of the files into a single archive) is the goal. I want to backup a single directory, which contains hundreds of sub-...
1
vote
2answers
410 views

Tar with progress but without compression

There are a lot of answers on how to create a tar.gz file with progress updates (ie. this answer, copied below) tar cf - /folder-with-big-files -P | pv -s $(du -sb /folder-with-big-files | awk '{...
0
votes
0answers
34 views

How to view specific path inside tar.gz?

tar -tf file.tar.gz let's me view inside the whole archive. How do you view a specific path without viewing the whole thing? E.g., I want to view only /path/foo/ Update: This command almost works ...
0
votes
0answers
52 views

Preserve 'read' permission using 'tar' and 'copy' commands

I have 2 servers in different domains. I use 3rd server to run batch script. All servers have cygwin installed hence I use Linux shell commands as well. All server could talk to each other. The goal: ...
0
votes
1answer
185 views

Can I decompress a .gzip file with tar?

I downloaded a .gz file with anonymized Census data and around 1 GB compressed. I am unable to inspect it with tar: $ tar -tf census.csv.gz tar: Unrecognized archive format tar: Error exit delayed ...
2
votes
4answers
57 views

How can one send a .tar archive on ssh witouth a temporary file? What is the “-f -” option in tar?

How can I make the compression and decompression of an archive via ssh with tar command, without creating a temporary file: I've an exemple: ScriptClient.sh #!/bin/bash tar -cf - myFile.txt | ssh $...
0
votes
1answer
109 views

How to remove file while restoring tar incremental backup when the file is deleted from source

I am using Linux tar command to take a full backup of one of my application data directory on every Monday and then later incremental backup on other days. Everything is all right but my problem is ...
0
votes
1answer
144 views

tpm-emulator-master.tar.gz: Cannot open: No such file or directory?

Can't figure out the problem as im a newbie to linux: ubuntu@ubuntu:~/Desktop$ tar -xvzf tpm-emulator-master.X.Y.tar.gz tar (child): tpm-emulator-master.X.Y.tar.gz: Cannot open: No such file or ...
0
votes
0answers
13 views

How to export a tarball for python program in Anjuta

I'll be honset I never built a tarball before and I have no idea how to do so. Now, I have made a python+gtk program in Anjuta and I would like to build a tarball(linux, BSD). Now I read the Anjuta ...
0
votes
1answer
192 views

Unpacking a *.tar file, while progressively deleting the archive

I have a 100GB tar file of small files (each smaller than 1MB). With this file on disk, I have 20GB of free disk space left. In other words, I have enough disk space to contain the files in the ...
0
votes
0answers
44 views

tar command is taking too long

hello I downloaded Firefox 60 from the official website and then extract it with the following command tar xjf firefox-60.0.1.tar.bz2 but nothing happened!! it's over 10 minutes already. what ...
0
votes
1answer
40 views

Untaring Transform Adding Directory Based on Pattern in Filename

Background: I've got 20 or so tar files at about 25G each containing a few million files. The directory structure for these files is not the format it needs to be so I want to fix that. Because of ...
0
votes
1answer
164 views

Zip vs tar (no compression)

I am currently working on changing all the computers for a company. To do the data transfers to the new computer I must either transfer it directly, or through the network by making a huge big file. ...
1
vote
1answer
38 views

Compress over 180k files

I am not even close to an expert in the infrastructure matter but I am trying to lend a hand to someone who's even worse than I am in this matter. We need to compress 184k specific files into a tar....
0
votes
1answer
70 views

Extract tar.gz files into a directory with different basename based on their match in the text file

I have hundred of folders, some with with tar.gz files and some with bam files. I just wanted to extract tar.gz files into a different directory. Folders with tar.gz files looks like mentioned below: ...
1
vote
1answer
2k views

How to extract all tar.gz files present in multiple folders at a time to another directory?

There are many folders in my current directory. Each folder has a tar.gz file. To extract the tar.gz file I need to be inside each folder and run the following command every time. tar xvzf tar.gz -C /...
0
votes
1answer
171 views

Trouble doing backup with tar using the results of find command

So I'm doing this perl script to backup my music. It will search for new music added to my disk since the last backup. When this command runs: find ~/Music -type f -mtime -145 | xargs tar -cvf ...
0
votes
1answer
20 views

Remote Copy of All Traits of a File Except for its Content

Everything described below is done via a Bash script. I desire to capture the state of a defined set of files on a defined set of remote hosts. The "state" of a file depends on the type of file: ...
0
votes
0answers
46 views

Equivalent 7za command for tar --force-local, -M, --file

Whats the correct replacement for the following cygwin command? tar cvf FRT_RTAC_OtherLogs.tar --force-local FRT_*.log I'm trying to replace it with: 7za a FRT_RTAC_OtherLogs.tar FRT_*.log I'm ...
1
vote
1answer
693 views

Failing to sysupgrade OpenWRT on a Linksys WRT1900ACS router

The sysupgrade based upgrade instructions suggest the following example for a sysupgrade: cd /tmp wget http://downloads.openwrt.org/chaos_calmer/15.05/****/generic/filename-of-downloaded-sysupgrade....
0
votes
2answers
93 views

Cannot encrypt .tar file in my Raspberry

I'm tryng to encrypt a tar file using a password stored in a file: ~/Documents/Secret/.secret using the following command: cat ~/Documents/Secret/.secret | gpg -c --passphrase-fd 0 ~/backup.tar Now ...
-1
votes
2answers
6k views

How to install when permission denied to /usr/local/bin/ [closed]

I need a quick help. I am a beginner so I think my problem is an easy one: Here it goes: I need to install a software application called muscle, and these are the steps from its website: wget http://...