Questions tagged [tar]

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

An archiving program for storing and retrieving files as a collection with support for data compression. It is mainly used for compacting multiple files into single one, for easy transporting or compression.

Its name comes from Tape ARchive

2690 questions
0
votes
1 answer

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 each sub-file is individually readable (and not…
user5123481566
  • 53
  • 1
  • 10
0
votes
1 answer

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 packages their deployment as a TGZ file. I have an…
Paul Rouleau
  • 811
  • 6
  • 4
0
votes
0 answers

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 headers = new HashMap<>(); headers.put("X-Amz-Meta-Snowball-Auto-Extract", "true"); in the…
0
votes
0 answers

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) let file = std::fs::File::open(some_path)?; let…
Leonel Hou
  • 31
  • 3
0
votes
0 answers

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 node Downloading and installing node…
Daniel
  • 1
  • 2
0
votes
0 answers

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: Cannot open: File exists tar: 3.10/lib/python3.1:…
mtoloo
  • 1,795
  • 3
  • 22
  • 28
0
votes
0 answers

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: &str, img_file_path: &str) -> Result { …
GranBoh
  • 67
  • 8
0
votes
0 answers

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, archive only, without compression. How can I do…
ayan ahmedov
  • 391
  • 1
  • 5
  • 23
0
votes
0 answers

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, and incremental backups monthly, weekly, and…
Gary Aitken
  • 233
  • 2
  • 12
0
votes
0 answers

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 file1.txt, file2.txt and image1.jpg? import…
0
votes
0 answers

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 scalable. Since I could imagine that in the future I…
schande
  • 576
  • 12
  • 27
0
votes
1 answer

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. I'm currently looking at SharpZipLib. All of…
eriyg
  • 99
  • 1
  • 12
0
votes
1 answer

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 file first, and then searches for the specific…
Plank
  • 1
  • 1
0
votes
2 answers

tar/bzip files without including the folder structure

sample setup: folder structure /folder1/folder2/folder3 folder3 has 2 files: sample.backups.tar sample My objective to run a script that bzips sample and appends it to sample.backups.tar, remove the compressed file outside bzip. I wrote the…
Schu
  • 1,124
  • 3
  • 11
  • 23
0
votes
0 answers

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.tar - DirB - DirC - FileX I am running this…
doa4321
  • 176
  • 2
  • 9
1 2 3
99
100