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

Does the rsync --archive option override the --exclude option?

I am running an rsync -avz command which excludes a large 32GB file by using --exclude=/file/path and no matter what I do rsync transfers the file. I understand that logically the --archive option ...
vfclists's user avatar
  • 7,531
0 votes
0 answers
20 views

How to uncompress two rar archives preserve content order?

How to uncompress two rar archives preserve content order? The archives is not .part1,.part2, just two separate archives containing video courses in folders. The folder names in first and second ...
minto's user avatar
  • 525
0 votes
1 answer
64 views

I deleted my backup.tar.gz instead of extracting it, can I restore it?

I created a backup with # tar -cvpzf /run/media/user/XYZ/backup.tar.gz --exclude=/run/media/user/root/mnt /run/media/user/root/ now I need the backup and when I tried to extract the tar.gz archive I ...
c4tz3r's user avatar
  • 1
0 votes
0 answers
29 views

What username, server and port are specified for IMAP with Gmail using getmail?

Looking at github and trying to use their example config file: nicholas@mordor:~$ nicholas@mordor:~$ cat .config/getmail/getmail [options] verbose = 1 delete = false message_log = ~/.getmail/log ...
Nicholas Saunders's user avatar
0 votes
1 answer
57 views

does rsync switch -a (ARCHIVE) always includes -l (symlinks)

does rsync option -a (ARCHIVE) always includes -l (symlinks) in linux systems? I was revising some old scripts containing both options and thought to drop unneeded options. The script might be used by ...
Serge's user avatar
  • 121
0 votes
0 answers
41 views

archiver/backups does not save/restore hardlinks

I will explain what kind of hardlinks and where and why they appeared, and why to save them. pictures on the server are saved: ../foto/M/ay/uZbIKBgsXr0222858001661067986M ../foto/M/ay/...
Aliskin's user avatar
  • 121
-1 votes
1 answer
48 views

How can I evaluate tars and gzips for validity without expanding them?

LONG ago I wrote a backup script for our site and have updated it ever since. However, occasionally things go wrong and some of the older backups are now broken. In days gone by I had used the utility ...
Richard T's user avatar
  • 192
0 votes
0 answers
162 views

Archive qemu image

How do I archive qemu images with the same efficiency as gcloud This command stub show efficiency. Around 80% on pre installed images of OSes notorious for their install size. 40g actual physical ...
John Peterson's user avatar
2 votes
1 answer
260 views

Listing the contents of an archive non-recursively using `zipinfo`

Is there a flag that I can pass to the zipinfo command to list the contents of an archive non-recursively? For example, if the target archive contains three directories, which in turn contain five ...
GPWR's user avatar
  • 152
-1 votes
1 answer
183 views

To tar creating from a directory by omitting top directory

How do we do tar to create/extract from/to a directory with omission or cutout or drop of the head/top directory name ?
user avatar
4 votes
2 answers
205 views

Is there a filesystem that can maintain extra ECC data like raid5, but in the filesystem to make a fault-tolerant single external drive?

Normally to make a fault-tolerant or corruption-repairing filesystem, you use multiple drives and raid 5, or anything but raid 0. There are also many ways to make a fault-tolerant archive file like ...
Brian White's user avatar
0 votes
0 answers
119 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 ...
Discussian's user avatar
1 vote
0 answers
83 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. ...
Michał F's user avatar
  • 281
4 votes
1 answer
3k 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 ...
Himanshuman's user avatar
0 votes
1 answer
602 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 ...
SICSU's user avatar
  • 3
1 vote
1 answer
979 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 ...
Wapax's user avatar
  • 13
0 votes
1 answer
67 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 ...
Marietto's user avatar
  • 531
0 votes
1 answer
111 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 ...
Marietto's user avatar
  • 531
0 votes
1 answer
939 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 ...
user19192927's user avatar
0 votes
1 answer
199 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 ...
telometto's user avatar
  • 1,985
0 votes
1 answer
523 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 ...
vfclists's user avatar
  • 7,531
0 votes
1 answer
3k 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 ...
Mai Ngọc Vinh's user avatar
0 votes
1 answer
1k 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 ...
heikrana's user avatar
  • 141
0 votes
0 answers
337 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 ...
olfek's user avatar
  • 731
10 votes
6 answers
6k 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 ...
Haotian Zhang's user avatar
0 votes
1 answer
3k views

How do I extract a .tar.xz file?

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 ...
mikemaccana's user avatar
  • 1,793
-1 votes
3 answers
13k 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 ...
Johsua's user avatar
  • 29
1 vote
1 answer
1k 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. ...
user258532's user avatar
1 vote
1 answer
65 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&...
lisa-thehexbit's user avatar
2 votes
1 answer
91 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 ...
Vincent Chalmel's user avatar
0 votes
1 answer
198 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 ...
mtk's user avatar
  • 27.5k
1 vote
1 answer
531 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 ...
jonah_in_the_whale's user avatar
3 votes
1 answer
2k 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}. ...
NayabSD's user avatar
  • 194
1 vote
2 answers
994 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: ...
c-x-berger's user avatar
1 vote
0 answers
72 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 ...
Jim's user avatar
  • 11
0 votes
1 answer
566 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
Justanothermatt's user avatar
0 votes
1 answer
501 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 ...
Kourosh Taheri-Golvarzi's user avatar
1 vote
0 answers
73 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 ...
mcandril's user avatar
  • 253
0 votes
1 answer
1k 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 ...
Dante's user avatar
  • 83
0 votes
2 answers
451 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 ...
typeduke's user avatar
  • 111
2 votes
1 answer
3k 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 ...
jonasbsv's user avatar
0 votes
0 answers
94 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
6 votes
3 answers
26k 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 ...
magmacollaris's user avatar
0 votes
0 answers
549 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 (...
kursat sonmez's 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
THEGreatGatsby's user avatar
0 votes
1 answer
402 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 ...
4dummies's user avatar
  • 115
0 votes
1 answer
80 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 ...
James78's user avatar
  • 145
0 votes
1 answer
315 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:...
Ashar's user avatar
  • 491
3 votes
3 answers
2k 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 ...
Josh Harrison's user avatar
2 votes
0 answers
396 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 (...
Basj's user avatar
  • 2,519

1
2 3 4 5