Questions tagged [tar]
The tar archive format and/or the command-line utility for working with tar files.
1,315 questions
9 votes
4 answers
627 views
How can we get tar to respect SIGKILL like it used to?
From time to time I need to do a quick check of contents of an Ultrium tape, which can store even 6TB of data. To avoid reading the entire tape, I used to perform following procedure (in a loop): $ ...
1 vote
1 answer
209 views
How to add tar.gz archive to an ar archive?
I'm trying to install multisim 14.3 using wine, and had to edit one of the packages, specifically the instructions file inside data.tar.gz. I'm having trouble adding the files back running the command ...
0 votes
2 answers
135 views
Why did my backup folder with large amounts of repeated data compress so poorly?
I have a folder with around seventy subfolders, each containing a few tarballs which are nightly backups of a few directories (the largest being /home) from an old Raspberry Pi. Each is a full backup; ...
5 votes
2 answers
688 views
The shell not redirecting output of tar to file
I am assuming this is a simple issue, but I don't have any one to double check my work. Here's my bash script #!/bin/bash # establish date format and dump name DATE=$(date +"%Y%m%d-%H%M") ...
0 votes
0 answers
89 views
tar extracted file with bad output
I tarred one file with: tar cf My-tarball.tar path/to/file.txt Then compressed it: gzip My-tarball.tar But when i decompress it and extract it gunzip My-tarball.tar.gz tar -xf My-tarball.tar the ...
3 votes
1 answer
170 views
tar compress inside android adb su root -c sub command produces empty tar file
I just stumbled upon a weird behavior on android: echo test>/data/local/tmp/test.txt su root -c "cat /data/local/tmp/test.txt && \ tar -cvzf /data/local/tmp/test.tar.gz /data/local/...
1 vote
0 answers
85 views
Transferring tar data between servers started taking much longer
I have a nightly backup that transfers about 100gb of data from AIX server A to AIX server B using the following command in a script. tar cf - ./DATA | ssh server_b 'cd /DISKCOPY ; tar xf - ' This ...
0 votes
0 answers
31 views
How to split tar archive on files matching pattern?
Suppose I have a large sample.tar with content: foo/... bar/... baz/... ... How to split in two disjoint tarballs so that one archive will contain files matching the pattern and the other archive ...