Skip to main content

Questions tagged [tar]

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

0 votes
1 answer
18 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
619 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
  • 109
6 votes
1 answer
547 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
  • 163
0 votes
0 answers
54 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
28 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
  • 13.6k
3 votes
1 answer
92 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
63 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
291 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
21 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
30 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
15 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
0 votes
1 answer
94 views

GitLab CI/CD: Create tar.gz with content inside current working dir and save tar.gz inside current working dir: tar: .: file changed as we read it

I'm trying to create an archive e.g. archive.tar.gz inside the current working directory e.g. /builds/project/ without saving the archive.tar.gz inside archive.tar.gz. To prevent this I'm trying to ...
rosaLux161's user avatar
3 votes
1 answer
475 views

How to open a .tar.xz indexed archivefile with Midnight Commander?

tar -I pixz -cf foo.tar.xz ./foo compress the Stuff. tar -I pixz -xf foo.tar.xz decompress the Stuff. And with pixz -l foo.tar.xz comes a list the contents. How can i do this with (mc) Midnight ...
user447274's user avatar
0 votes
1 answer
25 views

Archiver to backup a changing directory

So there is a directory that is actively changing. I want a backup snapshot, but both tar and zip crash as a file is deleted or changed while they read it. Is there any archiver in Linux-world that ...
Mikhail Ramendik's user avatar

15 30 50 per page
1
2 3 4 5
88