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
68 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
1answer
13 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 ...
0
votes
1answer
27 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 ...
0
votes
1answer
25 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:...
1
vote
2answers
61 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
0answers
40 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
votes
2answers
103 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 ...
1
vote
0answers
8 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 ...
0
votes
1answer
51 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
2answers
30 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 ...
0
votes
1answer
83 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:...
0
votes
1answer
45 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 ...
0
votes
0answers
47 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
vote
3answers
46 views

tar archive restarts after a certain time

I have a folder with over 200k files in it. I want to archive only the ones beginning with a certain name(file names are super large). Example sudo find /path/to/_Logs -name "RATE*" -print0 |...
0
votes
0answers
564 views

Error extracting a RAR archive: “is not RAR archive.No files to extract”

I have multiple huge RAR files that are separated into 6 parts.Some parts are completely downloaded,some not just yet.When I try to extract the fully downloaded archives,I get this: $ unrar e whatever....
0
votes
1answer
41 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
11 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
148 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
394 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
710 views

How do I gunzip to a particular directory?

I have .gz file like BIG5.gz. I want to gunzip this .gz file to the directory BIG5. This did not work: gunzip -c BIG5.gz > /BIG5
-2
votes
1answer
84 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
45 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
49 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
20 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
148 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
28 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
97 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
1k 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 ...
1
vote
0answers
967 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
53 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
241 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
52 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
1k 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 ...
1
vote
1answer
181 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
85 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
70 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
26 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
146 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
89 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
52 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
129 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 ...
0
votes
1answer
213 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
94 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
1k 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
370 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
684 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
25 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
457 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
44 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
620 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 ...