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
0answers
16 views

Script/Command to copy -intact- files w/ directory structure following GNU ddrescue

I made a clone of a failing hard disk using GNU ddrescue. Many of the files are okay, and many are broken. I can mount the clone, with its three partitions, in Linux. I need a script or command that ...
1
vote
0answers
47 views

zip warning: name not matched compressing folders

I'm trying to backup the whole volume of a drive. I want to have it password-protected This is what I did zip -er archive.zip /Volumes/Storage/ But I'm getting zip warning: name not matched ...
0
votes
0answers
43 views

Transferring .tar files on Linux

I need to transfer a .tar folder to a remote server and because it's very large I can't unpack it on my computer and then transfer it. I am using "rsync" but it doesn't work: rsync -av folder/...
1
vote
0answers
35 views

Unknown character encoding for zip file in archive manager

Forenote: I am quite new to Linux, and am really just a beginner. I have downloaded a zip file from a respectable-looking site with firefox; it should contain stuff to install an application. The zip ...
1
vote
2answers
49 views

List all files present in backup2.tar.bz2 but not present in backup1.tar.bz2

This lists all files in two backups, sorted by size: tar tvf backup1.tar.bz2 |sort -k3 -n >backup1_files.txt tar tvf backup2.tar.bz2 |sort -k3 -n >backup2_files.txt I'd like to list all files ...
3
votes
1answer
130 views

How to unrar nested RAR files?

I have a recursive directory structure which contains a lot of RAR files. I have been using this unrar command to extract all contained files into the current working directory: unrar e -r -o- *.rar ...
0
votes
0answers
33 views

Cant unrar a Windows RAR archive [duplicate]

I downloaded a rar archive and I tried to unrar it with xarchiver, but it gave error. Then I download unrar-free and tried to unrar the RAR file and I get some SFX error. On windows I can unrar it ...
1
vote
1answer
61 views

List contents of a tgz archive inside a gz archive

Bit of a weird one - I've got a honeypot running dionaea, which is a tool that consolidates any binaries that were uploaded to the device in single location (/data/dionaea/binaries). However, every ...
0
votes
1answer
56 views

tar - List of extracted files

How can I extract files from a .tar.gz archive while keeping a trace of the extracted files? For example, let's say I have the following file structure... ROOT ╠═▶ children ║ ╠═▶ joe.txt ║ ╚...
1
vote
1answer
47 views

Zip and archive to other directory

I have some 250 CSV source files in the incoming directory. My task is to merge those CSV files and generate a file like Merge_. the Informatica Job will then pick the merge file as the source and ...
0
votes
0answers
25 views

compressing folders with tar and trying to exclude a folder

I'm trying to get a small script to run smoothly, it's supposed to archive all subfolders under /docker/*. What I wan't is the script to exclude all folders that has a date (i e 20191010, 20180502 and ...
1
vote
4answers
88 views

zipping files iteratively

I have a folder with 77K PDFs(~500 GB in size). I want to zip them into 77 zipped files, each containing 1000 PDFs, so that they are easier to upload and share with peers. I don't know how to write ...
0
votes
0answers
18 views

Can't remove objet file from archive file

ar t libXYZ.a show me test1.o test3.o test2.o I want to remove one of the object file : ar d libXYZ.a test1.o give me error : ar : could not create temporary file whilst writing archive : No more ...
0
votes
1answer
27 views

Why can I open .iso files with Engrampa on one computer but not another?

I have Fedora 30 installed on two computers with different packages installed. The major difference is that one is x86_64 and the other is i686. On the x86_64 system, I can read and extract files ...
0
votes
0answers
37 views

Archive file system and mount read-only later

I have some hard drive whose contents I’d like to archive. It should be possible to mount it read-only later. Ideally it should be possible to mount a subdirectory instead of the whole archived file ...
3
votes
1answer
101 views

Debian Wheezy Archive EOL Term

Debian Wheezy has reached its EOL (end of life) now. Does it also mean that all its files found here http://archive.debian.org/debian/dists/wheezy/ will be killed and deleted for good one day too? How ...
-7
votes
1answer
109 views

What is -a argument for GNU cp? [closed]

The manual for GNU cp says -a, --archive same as -dR --preserve=all What is the meaning of "archive" here (which I assume radically different than with tar or zip)? Edit: I should have read -...
1
vote
1answer
64 views

Is it possible to edit and save files in a ZIP archive with Xarchiver without extracting them?

I know it's possible with GNOME archive manager (File Roller). When editing a text file inside a ZIP archive, pressing the Save button of the text editor will pop-up a window from the archive manager ...
1
vote
1answer
60 views

Can rsync be used to exclude whole directories and sub contents only if it contains a file matching a pattern?

I am hoping to achieve some cleanup functionality on about 20TB for my NAS with rsync in linux by excluding whole directories and contents for directories that would contain a ".protect" file I ...
0
votes
0answers
460 views

How to zip/tar files older than 30 days in archive directories?

I am very new to bash scripting, so bear with me, please. I need to collect, compress and delete files in the archive directory of a directory tree older than 30 days old for each respective folder. ...
0
votes
2answers
39 views

correct order while combining different options of a command

I usually combine options together whenever there are more than one option to be used with respect to some command. For example , if i want to create an archive using tar i will write tar -cvf archive....
-1
votes
1answer
96 views

Difference between tar -t and tar -v options

I created a archive using command tar -cvf filename.tar files , in this the verbose option simply showed me a list of all the files that i have archived.When i used tar -tf filename.tar ,it again ...
0
votes
1answer
22 views

Compressing Folder Structure with specific filtering

I have a folder structure like this: /foo /foo/bar /foo/bar2 /foo/bar3 Within each folder (including /foo) I have files with names ending .txt. However, I want to exclude these files from /foo and I ...
0
votes
1answer
187 views

Unzip tbz files

I have a huge list of tbz files, approximately 1000 tbz, which I want to UNZIP TO dm4 files. How do I go about it one shot.
0
votes
0answers
41 views

Tar files in groups by total size

I need to tar (and gzip) a long list of files but I need to do that in groups based on each group size. For example assume I have a list of 100 files, 1Mb each and I want to create archives that are ...
0
votes
1answer
171 views

Can I extract an overwriting tar archive, while retaining the ownership of the original destination file(s)?

I have a particular use case, where I want to extract a tar archive (as root) and intentionally overwrite some destination file(s) with the contents of the archive. This is all fine and easily ...
0
votes
1answer
181 views

cpio fails to extract files

In the following sequence of commands, why does cpio fails to extract the files previously archived? /home/pkara/Desktop/temp $ ls eBooks myfile.tar /home/pkara/Desktop/temp $ find . -depth -print | ...
2
votes
3answers
1k views

Can tar extract jar files

From https://dzone.com/articles/java-8-how-to-create-executable-fatjar-without-ide tar xf ExecutableOne.jar but why do I get $ tar xf ExecutableOne.jar tar: This does not look like a tar archive ...
1
vote
1answer
124 views

mkfifo to copy / move files

Is it possible to use mkfifo (named pipes) in Linux to copy files? For example: I am extracting files from tar archive and I want them to be moved immediately to another location.
2
votes
3answers
84 views

Determine the number of directories inside a tar file without extracting it

I need to count directories inside an archive file (e.g. tar.bz) without extracting the archive. Note that the archive is too big so that it will be hard to extract then count directories using ls | ...
0
votes
0answers
33 views

Archive all files in current dir [duplicate]

I couldn't found solution on this. How I can tar and gz all files in current dir without sub folders with bash script? I tried with #! /bin/bash tar -czvf all.tar.gz * Echo "archived" ..but ...
0
votes
0answers
84 views

How to make use of tar --verify directly?

This question is about compressing rather large data directories (around 22-23 GiB), specifically the integrity checks of such archives. I do these big backups about once a month, so the time it takes ...
0
votes
2answers
459 views

How to directly compress CURL output as named archive entry?

I've hundred of text files I need to CURL from remote host. Currently I've a loop which download each file and then compress it as new .zip entry. Is it possible to directly pipe CURL's output to an ...
1
vote
3answers
522 views

Tar Splitting Into Standalone Volumes

I have some directories with over 100Gb of data. I'm trying to archive them into smaller volumes i.e. 10Gb each that are independent / standalone. The problem is if I use tar + split, it results in ...
2
votes
1answer
1k views

How to extract a single file from a cpio archive?

I have a cpio archive with lots of files and I need to extract only one file, not all. With tar I could just use tar -xf archive.tar path/to/file, but that does not work with cpio: cpio -i < ...
0
votes
2answers
2k views

How can an image file be created for a directory?

How can an image file be created for a directory? For example: https://unix.stackexchange.com/a/90794/674 shows that genisoimage can create an iso image file for a directory. I only know that an ...
5
votes
2answers
664 views

What method does unzip use to find a single file in an archive?

Let's say I create 100 files with random text data of size 30MB each. Now I create a zip archive with 0 compression i.e. zip dataset.zip -r -0 *.txt. Now I want to extract just one file from this ...
0
votes
0answers
7 views

Least resource heavy file compression method on hosting server

There are many compression formats like tar, zip, bzip etc. On a shared hosting (Linux), if I were to archive a huge folder for migration, which format would be best (least resource heavy)? Storage ...
0
votes
1answer
45 views

Reading full Names in an Archive or ISO image?

I recently installed Ubuntu 18.04 on my Laptop wanting to learn Linux. I have some Video Courses in ISO Images; whenever I want to extract files from them, I don't get full names for some reason. I ...
0
votes
2answers
314 views

Why does libarchive's bsdtar's unzip throw away the permission bits when reading a ZIP-archive from stdin, but not directly?

I encountered that the command bsdtar from the package libarchive (under Arch Linux, at least) does throw away executable bits of files in .zip-archives when reading from stdin, but not when directly ...
0
votes
2answers
250 views

Unable to create tar with xz compression of a directory to another directory

I am trying to create a tar archive with xz compression of my home directory to another non-existent directory, but it gives me error: tar: Cowardly refusing to create an empty archive The command ...
0
votes
3answers
917 views

Linux determine ZIP size without compression

I would like to make a ZIP file using zip command. Zip file would contain large number of directories containing large numbers of subdirectories, files etc. Is there any way to calculate final size ...
5
votes
1answer
983 views

Unrar to folder with same name as archive

I have a lot of rar files - Folder/ --- Spain.rar --- Germany.rar --- Italy.rar All the files contains no root folder so it's just files. What I want to achieve when extracting is this structure: -...
0
votes
1answer
162 views

Configure PCManFM to automount archives [closed]

How can I setup PCManFM to mount an archive when double-clicking on it? Alternatively, how can I get this option in the right-click menu on an archive? (I used to have this on a machine running the ...
1
vote
2answers
81 views

Is there an archive file format supporting file-level concatenation?

It is a rather theoretical question but is there some (not too obscure) incremental archive format allowing to append to an existing archive using >> or to join several archives using a simple ...
0
votes
1answer
386 views

7zip archive extraction fails [closed]

I'm going to use bigfile, smallfile1, and smallfile2 to always refer to the same file names without file extension. The two small ones don't have any. I created an encrypted 7zip archive using this ...
-1
votes
2answers
85 views

tar + gz files from folder as is without to put inside all sub folder [duplicate]

we want to tar.gz all the following jars files 2.6.4.0-91/spark2/jars/super-csv-2.2.0.jar 2.6.4.0-91/spark2/jars/univocity-parsers-2.2.1.jar 2.6.4.0-91/spark2/jars/validation-api-1.1.0.Final.jar 2.6....
1
vote
0answers
204 views

tar: Potential bug (?) when incremental archive selected - Deleting files in the target

I have quite interesting observation which perhaps is a manifest of a bug. My use case is to: take a backup of a folder, having a set of files from this folder added to --exclude-from file. I'm ...
2
votes
3answers
585 views

mksquashfs: how to include full absolute directory paths inside the squashfs image?

When I create a squashfs image from multiple directories such as: /bin/ /usr/bin/ /usr/local/bin/ /some/other/random/folder/ /another/long/path/ If I use command... mksquashfs /bin /usr/bin /usr/...
0
votes
2answers
34 views

How to physically move a file within the same partition

If I'm working just inside one partition, could I move files around? The idea is to refresh an SD card against bit rot, but without moving the files out and in again.