Questions tagged [archive]

Use this tag for questions about files containing other files and/or folders, that are not covered by a more specific tag like tar, cpio, zip, rar, ar, 7z (in that case only use the specific tags). For generic questions about making security backups and rsync's archive mode, use backup.

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

Untar an archive without creating missing directories

I have a tar archive that looks something like this: $ tar -tf archive.tar foo/ foo/bar.txt dontcreateme/baz.txt The foo directory is directly specified in the archive, but dontcreateme is not - only ...
0 votes
0 answers
7 views

How to install Archive for Rox-Filer on fresh system?

https://rox.sourceforge.net/desktop/Archive.html used to be a very good archive manager for Rox-Filer, but I am unable to install deps. 0install keeps complaining either about Rox-Lib, or pygtk2. ...
1 vote
0 answers
25 views

How to extract subdirectory from tar into another tar without `sudo`?

Given A tar file with rootfs where all permissions and ownerships are set. Expected A tar file with content of subdirectory, let's say usr/local/lib where permissions and ownerships are retained. ...
  • 261
-1 votes
1 answer
180 views

Difference between ar, tar, gzip, zip and when should I decide to choose which one?

I had a use case where I needed to pack a bunch of files into one. And all above commands does the same. I know gzip compresses my files but lets say space is not at all an issue for me then in that ...
0 votes
1 answer
56 views

Error with option --strip-components when running example from manual of tar command

When reading the manual of tar command I encountered something wrong with the option --strip-components. The example in the manual is that there is a tar file containing a directory with 3 files. When ...
  • 3
1 vote
0 answers
214 views

Compressing an archive of images does not reduce its size significantly

I have lots of pictures to back up from my computer to an external hard drive. I want to make archives of all picture folders I want to back up and compress them to save space on my external drive. I ...
  • 11
0 votes
1 answer
37 views

"initrd.img-5.10.0-18-amd64" exists but is not a a directory. Function "open" failed: is not a directory : trying to overwrite a file inside cpio arch

I would like to overwrite a file that's already located inside a cpio folder with a new file that has the same name. I'm having some troubles by finding the working parameters. I've found this webpage ...
  • 491
0 votes
1 answer
35 views

The file produced unpacking a kernel file with (gunzip and cpio),overwriting some files and repacking everything,is not bootable

How the title says,I'm trying to unpacking a kernel file (let's say the first one : initrd.img-5.10.0-18-amd64.gz) with gunzip and cpio,overwriting some files and repacking everything. The issue is ...
  • 491
0 votes
1 answer
361 views

Convert octet-stream to zip file

I tried to zip a backup folder that contains 50 GB of data. The result is a octet-stream (full 50 GB) instead of a zip file. I have already erased the source data before I realize the issue. Is there ...
0 votes
0 answers
29 views

Zip folder content via CLI inside actual folder

I'm currently trying to create a ZIP file during a GitLab CI job including all data of the CI job (ZIP runs directly inside the folder): zip -r helper.zip ./ -x .\* helper-hooks.json __MACOSX The ZIP ...
  • 203
0 votes
1 answer
67 views

Update only permissions etc. with rsync

I'd like to know if the following scenario will update permissions, ownership, timestamps etc. Say I transfer a folder from a destination to another using rsync -zr source/ dest/, and then use the ...
  • 1,675
0 votes
1 answer
124 views

Does the rsync "-a" option exclude the "-A" and "-X" option?

Rsync describes the -a or --archive mode as being equivalent to the options.-rlptgoD (no -H,-A,-X). The -A and -X options are ambiguous and iit is not clear whether they are included or excluded. -A ...
  • 7,021
0 votes
1 answer
826 views

How to make archive file with checksum like tar.md5 or tar.gz.md5?

How can I add checksum information to a TAR archive, as in file.tar -> file.tar.md5 or file.tar.gz -> file.tar.gz.md5 I have searched everywhere but there is no guide or app about it. I need ...
0 votes
1 answer
441 views

7zip archive multiple files with their respective names

I have lots of files that I want to archive/compress using 7zip utility. They all reside in the same folder. Each archive must have the same name as the file that is to be archived. For example, if ...
  • 131
0 votes
0 answers
66 views

List of read only filesystems

What are all the read only filesystems still in use today? I'm looking for one to create a read only archive flash drive. The only ones I know about so far are: SquashFS ISO 9660 I'm looking for ...
  • 681
10 votes
6 answers
3k views

Fastest way to merge millions of small files together

I regularly need to transfer millions of small files (small images, txt, json) with average of 5-50k per file between servers or to aws s3. Is there a faster to merge them into a single file to ...
-1 votes
1 answer
485 views

How do I extract a .tar.xz file? [duplicate]

Some software seems to be distributed in a new archive format: $ file node-v18.7.0-linux-x64.tar.xz node-v18.7.0-linux-x64.tar.xz: XZ compressed data How do I extract this, preferably using tar (like ...
  • 1,697
-2 votes
3 answers
4k views

Creating a tar.gz archive of multiple directories of different locations -- "tar: Cowardly refusing to create an empty archive"

I'm trying to create an achive: $ cd /tmp $ tar -czf test1.tar.gz -C ~/Downloads/dir1 -C ~/Documents/dir2 -C ~/dir3/dir4/dir5 ... which is supposed not to preserve the full path of the directories in ...
  • 19
1 vote
1 answer
815 views

How to extract a specific file version from a ZPAQ archive

Recently, I've been looking into ZPAQ, which can do versioned backups of files and directories. A big plus of ZPAQ is that it not only compresses data, but also deduplicates redundant blocks of data. ...
0 votes
0 answers
37 views

find duplicates inside archives

I have a huge archive folder and want to integrate that into a local backup folder and then eliminate duplicates before making a cloud backup of the whole backupfolder. The problem: the files in the ...
  • 1
0 votes
0 answers
151 views

Diff says that files differ after copying them with cp -a

I have a flash drive which I backed up onto a disk with the following command: cp -a /media/user/flashDrive /home/user/Documents/flashBackup Now I just wanted to quickly check if the files were ...
1 vote
1 answer
49 views

Archive directory with tar/gz to multiple locations and omit an additional copy

I have a simple backup script, which also creates a tar/gzip archive of local data to an external USB device and then copies that archive to a second USB device. For example: usb1="/mnt/usbone&...
2 votes
1 answer
72 views

What's command line equivalent from gnome / centos8 "extract here"

I'm facing a curious enigma. I have a zip archive containing files whose filenames contains accented characters (é, à, è etc.) The "extract here" function from gnome file manager perfectly ...
0 votes
1 answer
89 views

Is it efficient to archive-n-compress or compress-n-archive storage size-wise?

I'm trying to archive old files (1000+) and thinking of two options gzip individual files and then create a zip create gzip using tar cvzf on group of files Not sure what would be most efficient ...
  • 26.1k
1 vote
1 answer
325 views

Tar's -r flag name meaning

Why tar flag used to append file to the archive is named -r? Other flags' names have some explanations (-x for eXtract, -C for Change current dir to another for output, ..) but I can't get how to ...
2 votes
1 answer
1k views

7z command to create a XZ file

The man page says 7z tool supports 7z, LZMA2, XZ, ZIP, Zip64, CAB, RAR, ARJ, GZIP, BZIP2, TAR, CPIO, RPM, ISO, most filesystem images and DEB formats. And it says we could pass the type as -t{Type}. ...
  • 184
0 votes
2 answers
286 views

Can tar decompress an archive without untarring it?

If I have a compressed archive (e.g. archive.tar.xz), I can decompress it and get the archived files back with tar xf archive.tar.xz. As far as I understand, this is technically two steps: ...
1 vote
0 answers
56 views

Easiest IMAP archiver for multiple accounts

I'm pretty new to linux, Im running Ubuntu at the moment. On windows I was using a service called "mailstore" to archive the entire contents of multiple email accounts. I've seen a few ...
  • 11
0 votes
1 answer
320 views

What is HIT Archive Data?

When I run file image.bin the output I get is: image.bin: HIT archive data I'm not sure exactly what this file/archive type is and Google isn't giving me a solid answer
0 votes
1 answer
259 views

What are the advantages of cpio over tar, zip, etc? [closed]

With cpio, you need to direct a list of files into cpio's standard input, whereas with tools such as tar, zip, etc, it's possible to recursively archive a directory (or multiple directories). I ...
1 vote
0 answers
57 views

What is the simplest way to send data to a tape library?

I am looking for the simplest (feasible) way to push data away on a tape library. This is for archiving finalized, immutable datasets that only need to be retrieved in case of a catastrophic failure ...
  • 243
0 votes
1 answer
544 views

Difference between an AppImage and an archive file

Many applications (IntelliJ IDEA, PyCharm, Android Studio, etc) are available as a tar.gz or tar.xz files. They do not need to be installed. You just need to extract the archive file and run the ...
  • 71
0 votes
2 answers
314 views

tar diff: get file names only

Using GNU tar, when I do tar df books.tar.bz2, I might get the following verbose result: books/a.pdf: Mod time differs books/a.pdf: Size differs books/b.pdf: Mod time differs books/b.pdf: Size differs ...
  • 111
2 votes
1 answer
2k views

How to uncompress multiple Zlib Archives with one comand

I have >200 .zlib Archives and I want to uncompress them using one command in Linux console. I just cant get the command right. maybe somone can help me: for z in *.zlib; do; zlib-flate -uncompress ...
0 votes
0 answers
80 views

How to view any ".a" files in Vim?

I get a bunch of characters while viewing .a files in Vim. Any idea how .a files can be viewed properly in Vim?
user avatar
5 votes
2 answers
11k views

How can I extract a RAR file on Debian?

I've got a 20GB RAR file to extract with a password on Debian Linux Google Cloud VM. I first tried sudo apt-get install unrar but the following output was given: Reading package lists... Done Building ...
0 votes
0 answers
404 views

Why unar extract old rar file?

There are 2 rar files in my scenario, their names are 1.rar and 2.rar. My purpose: 1.rar extract to folder1 and 2.rar extract to folder2. First, I extract the 1.rar file to folder1 folder with unar (...
0 votes
1 answer
3k views

When archiving files which command will preserve all file attributes including ACLs and SElinux security context?

I think this should be tar command however I am still wondering if using gzip can be still valid option? Any ideas? THanks
0 votes
1 answer
218 views

What is the fastest / best compression for large dar archives

I'm using dar (like tar, but optimized for hard disks) for backing up RAID volumes. They're modest sized for RAIDs, at perhaps 3 - 10 TB. I'm aiming to put the results on 8 TB external drives, but ...
  • 115
0 votes
1 answer
44 views

information about .deb installation, many errors

I want to install a tar.gz file downloaded from here. I tried but I got an error. I open the terminal in the folder and I'm trying to install. Here is a screenshot of the file manager, showing part ...
  • 97
0 votes
1 answer
194 views

List only files and not directories in archive

I have a zip achieve like below $ unzip -l 5124.zip Archive: 5124.zip Length Date Time Name --------- ---------- ----- ---- 0 01-13-2021 09:22 u/ 0 01-13-2021 09:...
  • 417
1 vote
2 answers
927 views

How to create split tar archive in multiple stages to save space?

I have a very large folder that I am trying to create a tar archive of. The issue is I don't have enough extra free space to store the entire archive so I want to create say 100-200GB chunks of the ...
1 vote
0 answers
171 views

Avoid to fully rewite a 7z file (10 GB) when updating a few files in it

Following the method explained in Incremental backup with 7zip, I can create an archive of 10 GB of documents with 7z u -up0q3r2x2y2z1w2 -mx=0 -p -mhe=on backup.7z /path/to/documents It's encrypted (...
  • 2,211
3 votes
2 answers
3k views

got "tar: /path/to/my/dir: Not found in archive" error while verifying created archive

I did compress a directory to .tar.xz archive format with this command: tar --create --verbose --file myArchive.tar.xz /path/to/my/dir then,I tried to check health of created archive with following ...
  • 99
1 vote
0 answers
23 views

how can I parse parameter to XZ compressor in dar?

in tar I can use XZ_OPT='-9e --thread=10', how can I do this in dar. At least I want to be able to use multithread xz compressor. Any idea how to achieve this? The same env does not work for dar, it ...
  • 1,142
0 votes
1 answer
310 views

Download content from a webpage using wget

I would like to download all the books from the gutenberg project using wget. I want to get them in the epub format. The link to the list is: http://www.gutenberg.org/robot/harvest?filetypes[]=epub....
0 votes
2 answers
192 views

how to search through a public email archive?

Email lists keep their emails in archives. Sometimes I want to search through those archive but I don't know how to do it. Of course I can open it one by one (actually month by month) and search the ...
  • 317
0 votes
1 answer
2k views

"xz : (stdout) : Write error: File too large" while writing a tar archive

I wanted to compress a directory whit size of about 25 GB to .tar.xz format using following command: tar --xz --create --verbose --file myArchive.tar.xz /patch/to/my/dir but got these error lines: xz:...
  • 99
1 vote
1 answer
345 views

how to fix "tar: Cannot verify compressed archives" error?

I wanted to compress a directory into .tar.xz format and verify it after writing so I wrote a command like this: tar --xz --create --verbose --verify --file myArchive.tar.xz /patch/to/my/dir but it ...
  • 99
0 votes
0 answers
187 views

ZIP file not opening (corrupted)

I have been tasked with fixing a corrupted zipfile - the clue I have been given is to change its file header. I looked at the hex bytes using gHex and changed 50 4B 05 06 to 50 4B 03 04 but it's still ...

1
2 3 4 5