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
36 views

tar returning different exit code when wrapped inside if statement [duplicate]

I have a script which creates a tar archive filtered through xz. I have wrapped the tar command inside an if statement so the script can take different actions depending on whether the archive was ...
mongotron's user avatar
1 vote
2 answers
50 views

tar not excluding symlinked directories

Tar version: root@node: /tmp > tar --version bsdtar 3.4.2 - libarchive 3.4.2 zlib/1.2.11 liblzma/5.2.5 bz2lib/1.0.8 I have a directory structure which looks like this: root@node: /tmp > ls -...
Rahul Bharadwaj's user avatar
0 votes
0 answers
16 views

What does df actually display? [duplicate]

Today I was using tar to backup the /var directory of my server. At some point, I noticed that this is taking very long, so I used du to figure out how large /var is. It was about 76 GB. My disk had ...
Thomas Weller's user avatar
0 votes
2 answers
50 views

tar: ./.tar.gz: file changed as we read it | "Flagged" files are unrelated to the file tar is supposed to operate on

I am trying to use tar to recursively compress all files with the .lammpstrj extension within the directory tree starting at the directory whose path is stored in the variable home. home contains the ...
Felipe Evaristo's user avatar
0 votes
1 answer
56 views

when tar creates a huge tar file that does not make sense

On RHEL 7-9, on a seemingly good system, with the XFS file system on the root partition, I am trying to cd /var tar -cf log.tar log a du -sh /var/log shows 173M however the tar process will take 10+ ...
ron's user avatar
  • 7,264
-1 votes
1 answer
41 views

How to untar with excluding one top level folder

I want to exclude the ".git" from untar, but without success. Here is the folder structure: mkdir -p /tmp/test mkdir -p /tmp/test/.git/hi touch /tmp/test/.git/foo.bar touch /tmp/test/....
stackbiz's user avatar
  • 115
0 votes
3 answers
82 views

Program which archives "files" from stdin to stdout, without hitting the disk?

Can anyone suggest a program which: Creates some form of archive from stdin, out to stdout, with filenames, and without hitting the disk (the data is sensitive) The program output will eventually be ...
QF0's user avatar
  • 315
0 votes
0 answers
35 views

This does not look like a tar archive, A lone zero block a at 24

I performed this C:\Users\User> adb exec-out "cd /storage/sdcard1 && tar c * -" > extsdcard.tar The file returned this: User@LAPTOP-DJH6CVKH MINGW64 /a/realme 5/sdcard $ file ...
Muhammad Ikhwan Perwira's user avatar
-2 votes
1 answer
48 views

Need Help on How to Uninstall .tar.bz2 file in fedora

I installed wingpro-10.0.3.0-linux-x64.tar.bz2 several days ago. Could you please teach me how to uninstall the application since yum remove or dnf remove don't work on tar.bz2 type file. Appreciated ...
Nano HE's user avatar
  • 11
2 votes
1 answer
122 views

Tar new volume script fails with "Syntax error: Bad fd number"

My shell script (see below) is failing partway through execution with "/bin/sh: 1: Syntax error: Bad fd number." This thread suggests that the problem is using the >& construction in ...
Bolio's user avatar
  • 123
-3 votes
1 answer
123 views

tar: Exiting with failure status due to previous errors

I running $ cat /etc/*-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=...
user3523406's user avatar
0 votes
2 answers
42 views

container options from linux other than tar that work in Windows

I have Windows 10 pc's that do not have winzip or 7zip, or any kind of compression software installed. do not ask why As such the windows10 pc's can only do an unzip. They are unable to work with a ....
ron's user avatar
  • 7,264
0 votes
2 answers
91 views

tar says Cannot open: No space left on device but df -h and df -i both show the available space is very large

I have around one hundred .tar files and they include millions of small files. I want to extract them to one directory in Linux. These .tar files are on a mounted LVM EXT4 file system. But no matter I ...
Lesterth's user avatar
3 votes
1 answer
67 views

Why is Tar speed not same?

I heard somewhere on the Internet that cpio is faster than tar. So I tried to check it with my shell script. #1/bin/bash rm ct.tar ct.cpio sync && sudo sh -c "/usr/bin/echo 3 > /proc/...
gdhong's user avatar
  • 31
1 vote
1 answer
89 views

GNU tar how to preserve file immutable attribute set by "chattr +i" in Linux?

I want use tar(GNU tar 1.30) to backup files with immutable attribute set by "chattr +i" in Linux. Command lines below: mdx@e5450:~$ touch test.txt mdx@e5450:~$ sudo chattr +i test.txt mdx@...
littlebat's user avatar

15 30 50 per page
1
2 3 4 5
86