Skip to main content

Questions tagged [tar]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

tar: Exiting with failure status due to previous errors while extracting

I am running a centos 8 machine and trying to untar a file. I am getting the following error tar: Skipping to next header tar: Exiting with failure status due to previous errors I don't see any error ...
Yash 's user avatar
0 votes
1 answer
42 views

Tar extract doesn't work on Zip repos with submodules [closed]

Tar extract doesn't work on Zip repos with submodules: curl -L https://github.com/org/repo-with-submodules/archive/refs/heads/main.zip -o ~/Downloads/repo-main.zip tar -xvf ~/Downloads/repo-main.zip -...
Ridhwaan Shakeel's user avatar
0 votes
1 answer
110 views

Using stdin for tar files content

Is it possible to use tar to create a archive completely in memory? I mean, you can pipe file names into tar's stdin, which are then used to create the archive. But i want to also pipe the file ...
Marc's user avatar
  • 403
0 votes
1 answer
65 views

Unpack tar made with tape-length option gives Illegal byte sequence

I had some big MP4 files that I wanted to backup to Amazon S3. Uploading them in the web interface gave me some timeouts so I created 4GB tar files using: tar -cv --tape-length=4G --file=backup-{000.....
Gabrie's user avatar
  • 141
0 votes
1 answer
24 views

changing the directory a tarball decompresses to

When I do wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz and then tar xvzf install-tl-unx.tar.gz the files get extracted (right now) to install-tl-20240521. On the CLI it's ...
neubert's user avatar
  • 7,222
0 votes
0 answers
10 views

Append/Fill incremental tar backup with volume size

I am backing up incremental data onto BD-R with 23866 MiB. The space of CD should be used as much, so I set the volume size as 3977 MiB. The last backup is as this. ar1.tar.075 - 3977 M ar1.tar.076 - ...
sg qy's user avatar
  • 101
0 votes
0 answers
133 views

Create a tar.gz file without parent folder "."

I try to archive a logfile folder. The problem im having with this, is that tar creates a archive that has a folder with a dot in it, and only when i open this folder, i see the files. How can i ...
Marc's user avatar
  • 403
0 votes
1 answer
190 views

tar on Windows does not handle paths with special characters

On a Windows 10 command line, creating a tar archive with "special" characters (e.g. extended latin) in the path of the archive itself results in errors. To be slightly more exact, a quick ...
djvg's user avatar
  • 136
0 votes
1 answer
311 views

Create a archive split into blocks of a maximum size using Windows shell

As example. I want to compress a directory of 100GB split into 10 archives of 10GB using cmd or powershell, non-interactive without installing additional tools. Using tar would be awesome but ...
unixcandles's user avatar
0 votes
1 answer
237 views

Windows tar command: exclude folder in current folder but not subfolders

I am trying to archive some folders with the tar command in Windows, and I would like to exclude a directory in the current folder, but not in subfolders. The example below is using the technique ...
triatic's user avatar
  • 33
0 votes
0 answers
71 views

tar give exception when preserve permission/specials files across filesystems

I am using the following tar command and tar flags in order to preserve hard and symbolic link & permissions on RHEL 8.6 version but we get the exceptions about tar: '--same-order' cannot be used ...
King David's user avatar
1 vote
1 answer
48 views

The files after extracting a tar

I recently start to use tar to backup my files on macOS. I usually use: tar cvf archive.tar foo bar and i also run this to check: tar tvf archive.tar It would show the following and it seems okay: -...
carol's user avatar
  • 31
0 votes
2 answers
79 views

Find strange TAR archive format

I have some file that can be extracted with tar: tar -tvf attachment.tar But when I test it with file I have this result: attachment.tar: uuencoded or xxencoded text, ASCII text, with CRLF line ...
mirik's user avatar
  • 103
1 vote
0 answers
267 views

Is there anyway to make `tar -xf file.tar output_folder` command faster for an uncompressed file?

I'm working with a Linux system and frequently use the tar command to extract large .tar files. I'm running tar -xf file.tar output_folder to extract a .tar file into a specific output folder. I've ...
Ali Waqas's user avatar
  • 111
1 vote
1 answer
367 views

Shell command to tar directory excluding certain folders

In Bash 4, I want make a tar.gz with excluded folders, and while tons of answers about this simple case exist, nothing works in my case. I would like to keep the directory mentioned in exclude, ...
VOX's user avatar
  • 13
0 votes
0 answers
35 views

restoring symlinks for transferred cygwin system

I backed up a portable cygwin installation the old way: in a simple tarball with tar -cvf cygwin; then I tried to restore it on a portable hard drive the old way: with a simple tar -xvf cygwin. The ...
jarnosz's user avatar
  • 165
0 votes
0 answers
30 views

crontab tar archive on macOS not recursive

I have a script to archive a directory on macOS: #!/bin/sh BACKUPNAME=$(date "+%Y-%m-%d@%H:%M:%S") BACKUPNAME="local-vaults-$BACKUPNAME.tar.gz" tar czfh "/Users/henrik/...
hstr's user avatar
  • 183
1 vote
1 answer
125 views

Verify data integrity of tar outputting through ssh

I am creating a backup script which uses tar, encrypts it with gpg and then sends the output through ssh to an offsite host. I am now wondering weather and how I can verify that all of the data is ...
Felix Schneider's user avatar
0 votes
1 answer
214 views

Are .tar.gz files made in Linux with identical files identical to .tar.gz files made in Windows?

I've produced a .tar.gz file in Windows that contains some files to update firmware via a Linux Device. The update failed to take, and a Coworker mentioned the problem was because the .tar.gz did not ...
k1dfr0std's user avatar
  • 127
0 votes
1 answer
294 views

When tar the same two packages,its md5 are not same

There are two packages with a file in it. [root@build-production test]# ll drwxr-xr-x. 2 root root 19 9月 18 07:58 pack1 drwxr-xr-x. 2 root root 19 9月 18 07:58 pack2 [root@build-production test]# ll ...
adu's user avatar
  • 3
0 votes
0 answers
57 views

How do I install libraries if I don't have the config file

How do I install the libraries if I don't have the config file, and in addition to not having the configure file, they come with an extension. I have followed the instructions, I have placed the ...
Emm ou's user avatar
  • 1
0 votes
0 answers
74 views

What are these pax tarball characteristics and comments?

I created a pax archive with GNU tar 1.34 under Debian 11 and, upon viewing the tarball in 7-Zip (23.01) File Manager on Windows 10, I noticed these fields on the archived items: Name Characteristics ...
leetbacoon's user avatar
0 votes
0 answers
357 views

Windows Tar Command for Tape Drive

I am trying to generate a command using GNUTar for backing up a folder on Windows 10 to a few tapes (hence my use of multisession). I am using an elevated command prompt window and have cd-ed into the ...
Beast from the East's user avatar
0 votes
1 answer
112 views

How to compute the total size of files included by tar after exclude flags?

I'm building on the answer here to write a backup script. The script I have is roughly backup_files="/etc /home" excludes="--exclude-vcs --exclude-ignore-recursive=.tarignore" #(...
Haem's user avatar
  • 103
1 vote
0 answers
43 views

Reading tar tape with blocking factor 2048 on CentOS 7

I am trying to read a tar tape on CentOS 7 which was written on CentOS 5. I used blocking factor 2048. I can read tapes written with blocking factor 1024, but not 2048. Attempting to read the tape ...
John Varsik's user avatar
0 votes
0 answers
250 views

tar:java/xxx:Cannot create symlink to : java/xxx : Permission denied

OS: Chromeos 114.0.5735.205 (Official Build) (32-bit) Kernel:Linux penguin 5.15.108 Architecture:aarch64 trying to install jdk , I ran : tar zxvf jdk-20_linux-aarch64_bin.tar.gz --no-same-owner got ...
Rajat Vats's user avatar
3 votes
1 answer
507 views

Behavior of tar --exclude-ignore not as expected

If I have the file structure dir/ dir/.ignore dir/file.ext dir/subdir/ dir/subdir/other_file.ext where dir/.ignore contains one line, *.ext, then I would expect the command $ tar -czvf dir.tgz --...
Confusion's user avatar
  • 131
0 votes
0 answers
171 views

Is it possible to recover a tar.xz file with the wrong hex header?

I have a compressed file in tar.xz format, when I try to open it with 7zip it gives the following error: Cannot open the file as [xz] archive Errors: Is no archive. I checked the file in a hex editor ...
Ameruca's user avatar
0 votes
0 answers
3k views

An error occurred while installing .NET (7.0): .NET Acquisition Failed: I

Here is the error that keeps popping up with my experience during this problem (Ubuntu/os) : An error occurred while installing .NET (7.0): .NET Acquisition Failed: Installation failed: Error: ...
TAEE1's user avatar
  • 1
0 votes
0 answers
233 views

Error when recombining multipart TAR file

I created a multipart tar file based on the instructions in this post. But when I try to recombine and untar, I'm getting an error message. To create a multipart tar from a large directory, I did the ...
b00kgrrl's user avatar
  • 123
1 vote
2 answers
931 views

Decompressed a .xz file and now it has no extension and is not a directory

I had a directory of files that I compressed using: tar -cvJf my_directory.xz my_directory Now I've gone to decompress it using: xz -dv my_directory.xz my_directory and the resulting file is simply ...
lusk's user avatar
  • 113
5 votes
2 answers
1k views

How to list only tar files

I have a silly problem usr01@srvlnx01:~$ sudo ls /var/opt/gitlab/backups/ 1685014011_2023_05_25_13.2.3_gitlab_backup.tar 1685016443_2023_05_25_13.2.3_gitlab_backup.tar tmp but usr01@srvlnx01:~$ ...
0___________'s user avatar
2 votes
2 answers
2k views

Tar owner map when extracting

Tar has several options to affect how file and directory ownership will be stored in that tar file. For example --numeric-owner, or --owner-map. These options directly affect how the tar file will be ...
psznm's user avatar
  • 21
1 vote
0 answers
421 views

Is it possible to open a TAR file without a header and metadata?

I am trying to open a TAR file without a header containing the file information and other metadata. I know for certain this is a TAR file. Running xxd and head on the tar gives me the following: ...
Rogue's user avatar
  • 53
1 vote
1 answer
102 views

What will happen if I run out of tape during backup?

For example: if I use tar to write on LTO-1 tape (200/100 gb) and during the backup tar hits the end of tape. Will I be able to restore such a corrupted archive? How to solve the possible problem? How ...
UltrumDev's user avatar
1 vote
2 answers
293 views

Why does changing a source file's name affect the size of its compressed version?

Using gzip on CentOS 7, I just compressed a source file into a .gz file, then I found I got the source file's name wrong, so I changed the source file's name and compressed it again, and interestingly ...
NoobAdmin's user avatar
0 votes
1 answer
468 views

Find log files under multiple directories and compress each file with its own name and date

I have multiple directories like below and I want to compress each file in place. /var/dir1/logs/logfile.log /var/dir2/logs/logfile.log /var/dir3/logs/logfile.log I want to use find and tar with ...
Tayfun Yuksel's user avatar
1 vote
1 answer
234 views

Getting an error when trying to create a tarball of my Redhat VM

I'd appreciate some assistance as to where I'm going wrong please. Ultimately my objective is to have Redhat available via Windows Subsystem for Linux. Reading the instructions on the following ...
user20960947's user avatar
0 votes
1 answer
994 views

How to verify a tar file in Windows?

In an effort to create more disk space I am trying to compress a bunch of my data into .tar.gz files. This takes a long time, so I'd like to automate the process in a .bat file. Ideally I would create ...
David K's user avatar
  • 341
1 vote
0 answers
2k views

tar error: Unexpected EOF in archive

I am trying to extract large tar folders, using the tar command tar -xvif v1-2-val.tar.gz but I get the error gzip: stdin: invalid compressed data--format violated tar: Unexpected EOF in archive tar:...
user787's user avatar
  • 11
-1 votes
1 answer
353 views

Why graalvm is not appearing in update-alternatives --config java?

I downloaded the file graalvm-ce-java17-linux-amd64-22.3.0.tar.gz and extract to the location usr/lib/jvm. Then i set the environment path with command export PATH=/path/to/<graalvm>/bin:$PATH ...
Prakash Karkee's user avatar
0 votes
1 answer
400 views

tar: samtools-1.9.tar: cannot open: no such file or directory

I am trying to run the command to install samtools on ubuntu but I am facing a problem here whenever I try to use tar. Input : /c/Users/Hamza Bilal$ tar -xvf samtools-1.9.tar.bz2 The Output I get ...
Talia's user avatar
  • 3
1 vote
1 answer
49 views

How to apply to multiple filenames in Windows command line?

I'm using tar in Windows 10 command line to extract a specific file from a bunch of archives. I'm quite experienced in regex, but I have very little experience in Windows commands. I'm using this ...
Dan Chaltiel's user avatar
1 vote
1 answer
4k views

Very slow extraction of a tar file on an external drive

I am trying to unzip a tar file on an external hard drive which is taking way to long. The file is 100GB compressed and will be 500GB uncompressed. I am using the following commands on windows command ...
phdstudent's user avatar
1 vote
1 answer
207 views

tar lzma autocompression produces the error "This does not look like a tar archive"

The following script mkdir test && cd test mkdir files touch files/{1,2,3} tar --create --file "test.lzma" files/{1,2,3} --auto-compress mkdir extracted_files tar --extract --file &...
cppbest's user avatar
  • 133
-1 votes
1 answer
4k views

Cannot open: No such file or directory tar: Error is not recoverable: exiting now in Debian

burakkaymaz4444@penguin:~$ sudo apt update Hit:1 https://deb.debian.org/debian bullseye InRelease Hit:2 https://deb.debian.org/debian bullseye-updates InRelease Hit:3 https://deb.debian.org/debian-...
Burak Kaymaz's user avatar
0 votes
1 answer
5k views

7zip program infected with malwares and viruses [duplicate]

7zip program infected with malwares and viruses. Virus Total scanned the installer as good with malicious and suspecious relations. The 7-zip program 7-zip v22.01 - (may be infected) From the Virus ...
smith john's user avatar
0 votes
0 answers
2k views

The most complete backup of /dev/sdX with dd, tar, gz, xz

What is the most complete way to backup/restore entire /dev/sdX (to/from a file) including device partition table and partition flags, all possible metadata, owners, file permissions, ACLs, creation/...
Monerig's user avatar
  • 31
0 votes
2 answers
822 views

How to extract How uncompress .tar.lrz file in centos 8?

I have .tar.lrz file in mac which I have to decompress. I am trying decomprees file from https://github.com/lin-tan/CoCoNut-Artifact/releases/tag/training_data_1.0.0 I already tried: yum install lrzip ...
Exploring's user avatar
  • 109
0 votes
0 answers
1k views

Error extracting tar.xz files on Linux

I have a bunch of tar.xz files I need to extract. I tried using the following command, but get errors when it tries to extract individual files. tar -xJf file.tar.xz tar: Example_path/and_file_name....
David K's user avatar
  • 341

1
2 3 4 5
16