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
1 vote
1 answer
96 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. ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
  • 1
0 votes
0 answers
52 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 ...
user avatar
1 vote
1 answer
29 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&...
user avatar
2 votes
1 answer
34 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 ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
  • 24.1k
1 vote
1 answer
77 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 ...
user avatar
0 votes
0 answers
145 views

Can I use log rotate to archive files older than 7 days, and delete tar files older than 15 days

Basically, what the title says. I'm currently using a combination of logrotate and separate scripts to try to get this behavior, but I would very much like to get everything centralized under ...
user avatar
  • 133
1 vote
1 answer
196 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}. ...
user avatar
0 votes
2 answers
69 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: ...
user avatar
1 vote
0 answers
36 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 ...
user avatar
  • 11
0 votes
1 answer
155 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
user avatar
0 votes
1 answer
113 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 ...
user avatar
1 vote
0 answers
45 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 ...
user avatar
  • 243
0 votes
1 answer
138 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 ...
user avatar
  • 71
-1 votes
2 answers
109 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 ...
user avatar
1 vote
0 answers
512 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 ...
user avatar
0 votes
0 answers
57 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
3 votes
2 answers
4k 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 ...
user avatar
0 votes
0 answers
232 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 (...
user avatar
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
user avatar
0 votes
1 answer
69 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 ...
user avatar
  • 115
0 votes
1 answer
32 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 ...
user avatar
  • 65
0 votes
1 answer
75 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:...
user avatar
  • 297
1 vote
2 answers
356 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 ...
user avatar
1 vote
0 answers
59 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 (...
user avatar
  • 2,245
3 votes
2 answers
858 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 ...
user avatar
  • 79
1 vote
0 answers
13 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 ...
user avatar
  • 930
0 votes
1 answer
192 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....
user avatar
0 votes
2 answers
91 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 ...
user avatar
  • 269
0 votes
1 answer
754 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:...
user avatar
  • 79
0 votes
1 answer
181 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 ...
user avatar
  • 79
0 votes
0 answers
57 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 ...
user avatar
1 vote
3 answers
58 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 |...
user avatar
0 votes
0 answers
2k 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....
user avatar
0 votes
1 answer
156 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....
user avatar
2 votes
1 answer
445 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 ...
user avatar
3 votes
1 answer
455 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....
user avatar
  • 336
3 votes
2 answers
7k 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
user avatar
  • 49
-2 votes
1 answer
121 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 ...
user avatar
  • 297
0 votes
1 answer
62 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 ...
user avatar
  • 11
1 vote
1 answer
123 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 ...
user avatar
  • 205
0 votes
1 answer
85 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 ...
user avatar
4 votes
1 answer
187 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 ...
user avatar
0 votes
1 answer
37 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....
user avatar
7 votes
2 answers
193 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. ...
user avatar
  • 111
0 votes
0 answers
3k 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 ...
user avatar
  • 437
1 vote
0 answers
2k 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 ...
user avatar
0 votes
0 answers
95 views

Transferring a big tar file using rsync 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/...
user avatar
1 vote
0 answers
425 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 ...
user avatar
  • 11

1
2 3 4 5