Skip to main content

Questions tagged [tar]

The tar archive format and/or the command-line utility for working with tar files.

1 vote
1 answer
174 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 ...
noxar_ad's user avatar
-1 votes
1 answer
100 views

Serving a file (e.g. in Apache) from a named pipe (made with mkfifo)

Let's say I use Apache, and that I am in /var/www/html/. I do: mkfifo test.tar tar cvf - ~/test/* > test.tar & In a browser, when trying to download http://localhost/test.tar I get: ...
Basj's user avatar
  • 2,609
0 votes
2 answers
127 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; ...
kj7rrv's user avatar
  • 251
0 votes
1 answer
35 views

is it possible to invoke mc with a tar.gz path as a parameter to open mc directly inside the tar.gz?

I am trying the obvious: mc file.tar.gz but the tar.gz is not opened any ideas?
Persimmonium's user avatar
5 votes
2 answers
664 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") ...
Ambre's user avatar
  • 111
6 votes
1 answer
685 views

tar not preserving symlinks

How to create an archive containing links and the linked files. I have some shared libraries of which I want to create an archive. This is what I tried mkdir dest #abc.so is a link file which points ...
Harry's user avatar
  • 239
0 votes
0 answers
82 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 ...
BenjamimCS's user avatar
1 vote
1 answer
42 views

Tar Solaris, how to use -k option?

I want to create an archive splitted on 300k archives but give me error tar -cf file.tar -k300 vi* tar: -k300: No such file or directory I try to put -k before -c tar -k 300 -cf file.tar ...
elbarna's user avatar
  • 14.1k
3 votes
1 answer
160 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/...
5andr0's user avatar
  • 113
6 votes
5 answers
2k views

Download a file with SSH/SCP, tar it inline and pipe it to openssl

I want to download a list of files from a SSH server, then put it in some kind of container (like a tar file) and finally encrypt it (e.g. with openssl). The point of putting it into a archive is to ...
Xali's user avatar
  • 61
1 vote
0 answers
84 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 ...
RedCabbage's user avatar
5 votes
1 answer
331 views

tar having much larger size than the containing files, can I make it smaller? [duplicate]

On Linux Mint 22, I created both GNU, and POSIX versions of tars containing 2 small files with: $ tar --posix -cf archive-posix.tar auto-fan-control.cpp Makefile $ tar -cf archive-gnu.tar ...
Vlastimil Burián's user avatar
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 ...
user1558113's user avatar
1 vote
0 answers
31 views

Extract and merge multipe tar gz [duplicate]

I have multiple tar.gz archives, the size of each archive is approximately 40 GB: v1.0-trainval01_blobs.tgz v1.0-trainval01_blobs.tgz ... v1.0-trainval10_blobs.tgz I can unpack each archive and get ...
Ars ML's user avatar
  • 11
0 votes
0 answers
31 views

bsdtar: Include some specific directories after exclude a wide-ranging pattern

As the question, after researching and tried suggestion from other threads[1][2], but I still not sure how to do it for my use case. I run a container and regularly backup as tar file. By redirection ...
Nhan.Q's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
88