Questions tagged [tar]

An archiving program for storing and retrieving files as a collection with support for data compression.

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

Combine multiple BLOB to TAR-Archive

I have several text files stored as CLOB in a table and want to export them together as an *.tar.gz file using PL/SQL. The table looks for example like: create table my_table( content clob, ...
donvogel's user avatar
0 votes
0 answers
17 views

how to reduce the number of sudo-io inodes with tar linux command?

After patching I am trying to reduce inodes at /var directory due the sudoer activity logging. I use tar command for archiving the subfolders into 1 file by below command but failing to untar the ...
László Szabó's user avatar
-1 votes
1 answer
20 views

Show how long the tar command takes to complete archiving process [closed]

Is there any way show how long did the compression time took to archive files using tar command. I need to know how many times took archiving process. I searched the internet but couldn't find ...
Ramin Ismayilli's user avatar
0 votes
0 answers
7 views

Listing the contains of a tar incremental archive for each day with all of the changes from previous days

I need to make tar incremental archives for each day. I am using the following command: tar -cz --listed-incremental=/home/Backup/list.snar --file=/home/Backup/$(date +%Y-%m-%d).tar.gz -C /home/ Files ...
Tim Tim's user avatar
0 votes
2 answers
44 views

How to pipe the result of wget to tar

I'm trying to create a command that would download the latest .gz file and install on my container in Dockerfile. I came up with this but I can't seem to get it working. curl -s https://api.github.com/...
toy's user avatar
  • 11.7k
0 votes
0 answers
10 views

Tar command adds permission number to filenames

I did "tar -cvf mydata.tar mydata/". Then, I copied it to my window PC and untar it. Now, I can see that some files have strange file name. Original : mypicture.png Untar : mypicture....
JayJay-K's user avatar
-1 votes
1 answer
48 views

Can't install packages in R Studio (Mac M1/M2)

I have recently bought a Mac (M2) and I originally only had an issue installing bioconductor packages in R. I understand this was an issue associated with the new Mac architecture. To deal with this I ...
botinky's user avatar
-2 votes
2 answers
56 views

Tar files convert in python

I have the following problem: i dont have Zipfiles. I have tar files. Can anyone help me please to change the code to tar files? import glob import os from zipfile import ZipFile zipfiles = [os.path....
INegativeI's user avatar
0 votes
1 answer
75 views

How to create a 'shallow' tar archive without the actual file data?

Is there a way to create a tar archive that will only contain file names but omit the actual file data? The intent is to create a hierarchical 'mirror' of a drive that will only contain the directory ...
ccpizza's user avatar
  • 29.2k
0 votes
0 answers
30 views

Create compressed archive with tar under Windows commandline - without parent directory

I found some information about how to create a compressed tar archive without including the parent directory but the found solutions do not work in my case :-/ I have two drives on my Windows PC: ...
Felix Waltl's user avatar
0 votes
0 answers
44 views

Is there a way to create a tar file with a single text file inside it using a one line only command in Powershell?

Is there a way to create a file.tar with a single text file inside it using a one line only command in Powershell? I tried with: echo "This is some text" | 7z a -si archive.tar -ttar -so >...
Fred Hors's user avatar
  • 3,338
-1 votes
1 answer
58 views

AIX Version 6.1 tar script

I need to create a script in AIX Version 6.1 that create a zip file containing a txt and several pdf. I am not used to scripting in this environment except for some basic so I am sure I am missing ...
AlexMI's user avatar
  • 846
-1 votes
1 answer
15 views

Extract specific file in .tar.gz using PHP [duplicate]

I have a specific file in a .tar.gz archive that I'd like to extract. How do I do this in PHP? For example, MaxMind's GeoLite databases are available as a .tar.gz files. For each product, the filename ...
Tyler's user avatar
  • 181
0 votes
0 answers
19 views

GitHub Actions | Incorrect File Type | Tar

I have a GH actions where I upload a tar file to JFROG and then download to extract to process it further. If I put the upload and download code is same yml file, the file type is shown as tar gz and ...
AD90's user avatar
  • 179
1 vote
1 answer
73 views

I want to install JDK for Debian using ARM64 but I got todpkg: error: archive 'jdk-20.0.2' is not a regular file, how do I fix?

I tried to install Java IDK using https://www.oracle.com/java/technologies/downloads/#jdk18-linux and wget as well as uncompressing it using tar but when I tried to sudo apt dpkg install on it, it ...
Tyler Roberts's user avatar
0 votes
0 answers
37 views

my jupyter notebook has permission problems, it can't extract files

i'm running a colab locally with notebook running under anaconda, it gets stuck extracting files with tar and gives me error "PermissionError: [Errno 13] Permission denied: 'content\wav2lip-HD\....
romrom83's user avatar
0 votes
2 answers
48 views

How to estimate the extracted size of a tar.gz file without extracting it in PowerShell 7 (Windows 11)?

I have a tar.gz file that is about 1.39GB. I want to estimate the unzipped size before I actually extract it to avoid filling up my disk. This is for my work and I can only use my work PC (Windows 11) ...
Yee's user avatar
  • 13
0 votes
1 answer
93 views

How can I split a large tar.gz file into smaller tar.gz files of maximum 1 GB?

I have a file archive.tar.gz, which is 38 GB in size. I want to store it in chunks of maximum 1 GB. To do that, I would like to split it into sub-files archive_0.tar.gz, archive_1.tar.gz, ... so that ...
user5123481566's user avatar
1 vote
1 answer
64 views

Golang fails to write header to tar package?

code show as below fInfo, err := os.Stat(fp) if err != nil { fmt.Println(err.Error()) return } header, err := tar.FileInfoHeader(fInfo, "") if err != nil {...
YuSheng's user avatar
  • 97
0 votes
1 answer
46 views

Azure DevOps Pipeline - ExtractFiles - multiple zips, to multiple extract folders

I'm looking for a way to extract multiple tar files into their own folders with a single step in my pipeline. I have a mono-repo pipeline that builds multiple Remix applications. Each application ...
Paul Rouleau's user avatar
1 vote
1 answer
55 views

How to stream files to tar using a chunking approach?

I want to backup my system by invoking a tar'ing script over ssh that pipes back to stdout for the ssh-initiating host to then store the tar. However, I want to perform logical dumps of some services ...
Thysce's user avatar
  • 116
0 votes
0 answers
37 views

Minio define Extract Path

I can extract the files to minio root folder but not elsewhere Hello all. I'm using MinIO Java Client API: minio 8.4.5 I use: Map<String, String> headers = new HashMap<>(); headers.put(&...
Diogo Eira's user avatar
1 vote
1 answer
41 views

Get md5sum in pipe

I am creating archives of very large directories and splitting these archives in smaller parts as follows: tar -vcz target_dir | pigz > target_dir.tar.gz md5sum target_dir.tar.gz > md5sum.txt ...
justinian482's user avatar
0 votes
0 answers
46 views

Rust `tar` crate errs only to file downloaded via Firefox

Description I'm writing a Rust program that includes unarchiving a .tar.gz file. I followed the conventional approach, using crates tar and flate2: // the function returns Result((), Box<dyn Error&...
Leonel Hou's user avatar
1 vote
1 answer
29 views

Making a tar file by date

Hi I'm with a simple question but didn't find why it's happenig, I want to make a tar only with the files that downloaded yesterday. I'm using find to take all the file names, but when I try to use ...
Anderson Silvestre's user avatar
-2 votes
1 answer
49 views

In ansible version 2.9.25 - how to tar, compress (gzip) the directory in Linux and copy to destination path [closed]

In ansible version 2.9.25 - how to create tar file of given dir and also compress (gzip) that dir in Linux (RHEL 7.9) to the given destination path directly. During Oracle DB patching as pre-check ...
Learner's user avatar
  • 13
1 vote
1 answer
38 views

Untar files in subdirectories while keeping them in the subdirectories

I am trying to recursively untar the contents of a whole lot of directories that have .tar files in them, but without creating any new subdirectories. I am successfully able to do one at a time with ...
bk_32's user avatar
  • 485
2 votes
1 answer
136 views

What is the most efficient way to unpack a .tar.zstd download in Python?

I am using the zstandard library to pack and unpack. I am essentially trying to recreate the following bash in Python: curl -O - http://download.com/file.tar.zst | zstd -d - | tar xf - I found this ...
drowsily.throbbing872's user avatar
0 votes
0 answers
38 views

SSH's command "nvm install node" is'nt working because of a tar error

I have installed NVM on my SSH, but the 'nvm install node' command isn't working because it's getting a tar error tar: invalid option -- J. How can i solve this? complete log: -bash-3.2$ nvm install ...
Daniel's user avatar
  • 1
0 votes
0 answers
26 views

Error extracting python virtual environment

I have a venv for python 3.10 containing some packages. Whenever I want to extract it using tar -xf env.310.tar.gz the following errors will prevent running my docker script: tar: 3.10/lib/terminfo: ...
mtoloo's user avatar
  • 1,805
-1 votes
2 answers
24 views

tar up a directory including the directory

I am trying to tar up a directory and include the directory so that the directory is there when untarred because it is used in an pre-written installation script that is out of my control the result ...
Jim_Brent's user avatar
0 votes
0 answers
37 views

Post a tar archive in a reqwest function

Hi i want to send a tar archive with a docker image to docker build api. this is an example of how i am triyng to post that // build image pub fn build_image_fn(docker_api_ip: &str, image_name: &...
GranBoh's user avatar
  • 67
1 vote
0 answers
34 views

Read tar files and ignore zeros support in archive/tar standard library?

in tar specification, a normal tar file should end with consecutive zeros. The archive/tar standard library in Go does very well on reading the tar file. However, unlike command line tool tar, which ...
LSChyi's user avatar
  • 11
1 vote
1 answer
445 views

ZSTD compression with tar and --ultra 22 on Mac OSX and homebrew (with progress bar)

I want to be able to compress a file or folder, and see the progress of said input in the terminal. This is my current progress so far, but I have two issues with it: This should be possible without ...
OpenGears's user avatar
  • 102
0 votes
0 answers
11 views

pre calculate tar size

I'd like to pre-calculate the final size of the tar file without actually creating it. I already know the sizes and the names of all the files that will go inside the archive. I guess to have it easy, ...
ayan ahmedov's user avatar
0 votes
0 answers
26 views

How to do multi-level incremental backups with gnu tar?

I'm wondering if anyone is actually using gnu tar to do multi-level incremental backups. All of the examples I have seen show only a single level of incremental backups. If I want full backups yearly,...
Gary Aitken's user avatar
-1 votes
1 answer
28 views

Is there a way to untar a file and merge all the extracted files into one for efficient R data analysis?

I know how to untar a file, but I want to keep all of the infomation into one file not 12 different files after it is untar'ed. I use a MacBook. I want to compute the data into R so I need the untared ...
Julia K's user avatar
0 votes
0 answers
39 views

Iterate through all files recursively in a tarball that contains directories

I have a tarball with several directories inside. I'm using Python to iterate through all files in the tarball without extracting it. The sample code belows can read README.md only, how can I read ...
Dang Huy Nguyen's user avatar
-1 votes
1 answer
92 views

How do I send a SIGUSR1 signal to tar, ran via subprocess in Python?

I'm executing a tar process with the subprocess module and I discovered the ability to use signals to get progress information out of it (send to stderr). $ tar -xpf archive.tar --totals=SIGUSR1 ./...
Xevion's user avatar
  • 579
0 votes
0 answers
41 views

How to copy structured (archive) files to a file system using a Yocto recipe

I want to create a recipe that puts files in their corrosponding folders on the rootfs of the target system. Similar to when you install an .ipk or .deb file on your system. The solution should be ...
schande's user avatar
  • 576
-2 votes
3 answers
409 views

How to solve AttributeError: __enter__?

Here is the relevant code: for file in files: with readfile(file) as openfile: molecules.append(process_file_fn(openfile)) and I am getting this error from the code ...
Rose Vanilla's user avatar
0 votes
1 answer
104 views

C#: How do I make a .tar file given a collection of System.IO.Stream objects?

I need to create a .tar file, but I don't have access to the filesystem as I'm working with Azure blob storage. I can get a collection of Streams for various files, but now I need a way to tar them up....
eriyg's user avatar
  • 109
0 votes
1 answer
220 views

Efficiently extracting a single file from a large tar.xz archive without decompressing the entire archive

I have a large tar.gz archive, and I need to extract a single file from it without having to decompress and unpack the entire archive. The current process I'm using seems to extract the whole tar.xz ...
Plank's user avatar
  • 1
1 vote
1 answer
272 views

How to silent the output of `untar(files="xxx")` when a file is not found?

I am using utils::untar() with its argument files to extract a single file. However, if the file is missing, I get a warning and a non-stopping internal error message. I could remove the warning using ...
Dan Chaltiel's user avatar
  • 7,861
0 votes
0 answers
25 views

Why is tar creating a nested directory of given tar file name while compressing?

This might be a duplicate question but I could not find any reference to my problem anywhere. I have the following structure: DirA - DirB - DirC - FileX I want an archive with this structure: Arch....
doa4321's user avatar
  • 176
1 vote
1 answer
141 views

How to decompress selected file from tar archive when file name contains some non-latin characters?

I have a tar.bz2 archive, I want to decompress files with names containing special characters like for example ë So I use: tar -jxf "file.tar.bz2" -C "folder" But it fails, error ...
Jacek Wojcik's user avatar
  • 1,233
1 vote
1 answer
440 views

tar.exe in Powershell says it can't find directory if directory is specified with trailing backslash

I'm trying to create a tarball of a directory using tar.exe on Windows 11. When I run in PowerShell or cmd: tar -c -f file.tar directory\ I get the error tar.exe: OCESSORS=24: Couldn't visit ...
Matt Bhagat-Conway's user avatar
1 vote
1 answer
165 views

I want to decompress the .ab file backed up by adb and write it into a tar package

I handle it in the following way bf, err := os.Open(backupFilePath) if err != nil { fmt.Println("os.Open: ", err) return } defer bf.Close() rd := bufio.NewReader(bf) tarFile, err := ...
YuSheng's user avatar
  • 97
0 votes
0 answers
22 views

The file is not correct when decompress with tar -xvJf xxx.tar.xz?

I was trying to "tar -xvJf binutil-3.6.1.tar.xz" then build it in a cross-compiling project. But when I start the build I found some files such as regex.c (who has 8k+ lines) have lost some ...
Hi-v's user avatar
  • 1
0 votes
0 answers
209 views

How can I access HuggingFace Dockerfiles?

I want to edit the Dockerfiles that are used to run HuggingFace Spaces. I know how to run them in theory, e.g. for https://huggingface.co/spaces/suno/bark it's docker run -it -p 7860:7860 --platform=...
Tom Dörr's user avatar
  • 879

1
2 3 4 5
54