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
1answer
31 views

What archival method (tar, zip, 7z, etc) allows me to retain folder modification dates on macOS?

I currently have a directory in a hard drive, say TopFolder which contains 3 subfolders, Folder1, Folder2, and Folder3. When I am in the top level directory of the hard drive, and do: tar cf TopFolder....
0
votes
0answers
7 views

Is pax required to stop when a file already exists in the destination directory and the k option has been given?

The POSIX manpage says only that -k shall "prevent overwriting of existing files". That doesn't tell me if all the other files will be copied, or only the ones before the existing one, or ...
2
votes
1answer
78 views

How do you determine the remaning capacity of a magnetic tape with mt or tar? How much space is in a block?

I am currently trying to back up data onto an LTO-4 tape using mt-st and gnu tar 1.32, but I want to make sure I stop trying to copy things before the tape runs out! LTO-4 nominally has a capacity of ...
3
votes
1answer
379 views

File ownership preservation with .tgz

Back with another probably very very basic UNIX question. I understand the premise of Tape Archive Zips (.tgz) is that they preserve uid, gid, permissions... However, it seems that this isn't portable....
0
votes
2answers
64 views

How do i gunzip to a particular folder?

I have .gz file like BIG5.gz. I want to gunzip this gz file to a BIG5 folder. This did not work: gunzip -c BIG5.gz > /BIG5
-2
votes
1answer
71 views

Need solution to archive a folder excluding all .log and .err files using wildcards

I wish to archive all files and folders under /app/jboss while excluding all .log and .err files. The directory structure under /app/jboss is too vast and complex. Thus a few sample files below should ...
0
votes
1answer
41 views

What happens when I create a file in the directory that is being archived with tar?

I have a large directory (80GB) that I want to compress into the archive. What happens, when a new file is created in that directory, while it is being tared? Would new files be included in the ...
0
votes
1answer
42 views

Use disk like tape

We are building a data archiving system where we want to have the option to store redundant copies of data on different storage types: tape/disk/cloud, and also with the option of using different ...
0
votes
1answer
18 views

How do I extract files directly to a hidden directory in Linuxmint?

I am using Archive Manager 3.16.5 in Linux Mint and now I want to extract files directly to a hidden directory (say .vim) but I can't find hidden files/directory listed in the gui. So how do I go ...
4
votes
1answer
135 views

Failed to move a 7z Archive, now it can’t be read, but there is a fragment left in the original location named .part

I was trying to move my old 7z archive from an older ext4 partition to my current one, but in the process it randomly seems to have cancelled. Not only does the new location possess an incomplete ...
0
votes
1answer
27 views

gzip multiples directory into archives in another directory

I want to back up each of the directories in /home, in separate .tar.gz files, to the /backup directory. Here an example. I know how to compress them. But not sure, how to send it in another directory....
6
votes
2answers
60 views

Archiving program that adds redundancy

I'm looking for a archiving program that adds redundancy to an archive. Example : I've got 500MB of data, and a 700MB media to burn it. Rather than waste 200MB, I want to use them to add redundancy. ...
0
votes
0answers
485 views

Unable to open 7z-Archive: Open ERROR: Can not open the file as [7z] archive

I'm trying to open a 7z-File which I've packed with my phone using the ZArchiver app. Probably the process was interrupted and some files have gone missing, but that's not a huge problem. Ark and ...
0
votes
0answers
31 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
586 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
51 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
140 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
51 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
667 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
35 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
132 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
69 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
58 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
118 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
1answer
63 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
43 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
119 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 ...
1
vote
1answer
141 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
78 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
968 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
181 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
342 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
23 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
348 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
42 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
477 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
362 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
3k 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
210 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
152 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
202 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
878 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 ...
4
votes
3answers
1k 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 ...
3
votes
1answer
2k 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 < ...
1
vote
2answers
5k views

How can an image file be created for a directory?

How can an image file be created for a directory? For example: Create iso image from folder via terminal commands shows that genisoimage can create an iso image file for a directory. I only know that ...
5
votes
2answers
691 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
1answer
46 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
465 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
368 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 ...