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
1 answer
39 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
  • 137
0 votes
1 answer
27 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
61 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
45 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
36 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
59 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
58 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
158 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
26 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 ...
jarnosc's user avatar
  • 165
0 votes
0 answers
24 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
95 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
147 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
187 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
45 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
61 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
234 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
0 answers
68 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
  • 101
1 vote
0 answers
38 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
227 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
356 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
93 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
2k 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
150 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
459 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
974 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
1 vote
2 answers
1k 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
  • 11
0 votes
0 answers
211 views

ZST Compression Error In LMDE5 (Debian 11) Breaks Apt

I recently installed WeChat via the deepin-wine install method described below: First, I ran this in terminal: wget -O- https://deepin-wine.i-m.dev/setup.sh | sh Then I used the Synaptic Package ...
mjones's user avatar
  • 307
1 vote
0 answers
360 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
81 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
198 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
391 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
135 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
677 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
284 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
317 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
45 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
3k 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
183 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
  • 33
-1 votes
1 answer
3k 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
4k 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
706 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
2 votes
3 answers
6k views

Error extracting tar.xz files in Windows using command line

I have a bunch of tar.xz files I need to extract. I tried using the following command, but get an error. tar -xJf "S:This_Is\the path\to_my_file.tar.xz" tar: Error opening archive: Can't ...
David K's user avatar
  • 341
0 votes
1 answer
381 views

preserve hidden attribute on directory when using tar

Here is the shell script I'm writing to automate the task of copying a specific Vue project to another location on a Windows 11 machine: # declare and initialize variables source="/z/files/...
knot22's user avatar
  • 103
0 votes
0 answers
449 views

Need faster archiving+compression of folders in .zip instead of .tar extension

I have a folder inside which are sub-folders and files. We currently use 7za to archive+compress in the .zip file extension. Specifically, following is the command that we use: /usr/libexec/p7zip/7za ...
Uchiha AJ's user avatar
0 votes
1 answer
1k views

How to make tar use constant memory?

I need to compress multiple files across multiple folders (>32GB) the way we compressed before via code used too much memory, so I used tar instead. I used tar with lz4 with tar -I lz4 -cf foo.tar....
Stack Overflow's user avatar
0 votes
0 answers
767 views

Windows tar compress command doesnt appear to include subdirectories

I am trying to compress all files and folders in the current folder (on my Windows 10 environment) so I can extract them on my Raspbian environment. Im using a Powershell script with the tar command ...
Jimbo's user avatar
  • 161
0 votes
1 answer
64 views

Can someone please explain how to loop the backup logic ( below mentioned script )

Could someone please explain how can i loop the below logic, This logic needs to run for every week. For eg : In 1st week in source folder i have a files and folder called stack.txt, webmethods, ...
Varun K M's user avatar

1
2 3 4 5
16