The tag has no wiki summary.

learn more… | top users | synonyms

-2
votes
1answer
28 views

Archive file with date-stamp [duplicate]

I want to move(archive) the multiple files from say directory /users/wahasan to /users/wahasan/old. The archive files should be autodated. files are of the format CHKBOI.pos, CHKUTI.pos, ...
1
vote
3answers
32 views

TAR Files: Move Files From Subdirectories to Main Directory

I've been trying to use this code: find documents -maxdepth 1 -type f -print0 | xargs -0 tar cvf documents.tar.gz to create a backup of the directory documents. The directory has the structure: ...
2
votes
2answers
37 views

How to specify a different “top level” name for tar?

I would like to tar root (/) and let it appear as /abc in the tar archive. Is there a tar flag for specifying a custom top-level name?
3
votes
1answer
21 views

Is it possible to add error correction codes (BCH, RS or etc.) to a single file?

As far as I know, WinRAR archives may contain ECC (error correction codes), so if the archive is slightly damaged, then it can be fixed by itself. For example, I can first encode archives.tar to ...
2
votes
1answer
37 views

cpio VS tar - what the best archive solution in order to compress hundred of directories to one file

I have hundreds of directories under /var/Recording, and each directory there will have subdirectories, including files, hard links and soft links. I want to compress all directories under ...
1
vote
2answers
24 views

Unzip error, is recovery possible?

I compressed 4 separate folders with some wedding videos (!!) a few months ago. Today I tried to unzip them, and had no problem with the last 2, but the first 2 of them show an error: ...
6
votes
1answer
184 views

Zip Archive With Limited Number of Files

What command can I use to create zips with a file number limit? I have a folder (no subfolders) of, say, 5000 files, so I would want a command that could divide that number and create 10 individual ...
3
votes
1answer
75 views

Estimate the size of the extracted files before extraction a `tar.gz` archive?

Before using tar to extract a .tar.gz archive, it is possible to get an estimate of how large the extracted files are in total?
2
votes
1answer
78 views

How to create a deterministic tar.gz using git-archive?

Creating a git repository for testing. ~ $ mkdir somefolder ~ $ cd somefolder/ ~/somefolder $ git init Initialized empty Git repository in /home/user/somefolder/.git/ ~/somefolder $ echo test > ...
2
votes
2answers
46 views

Unzip into directory, independent if directory is contained in ZIP

Let's assume I've a ZIP file whichs content may look like # file: with_out_dir.zip file1.txt file2.cpp file3.js some_sub_dir/ - file_in_subdir.txt file4.xml but it may also look like this # file: ...
3
votes
1answer
99 views

Recover the content of a Firefox .part file?

The question says it all, I have a <filename>.zip.part file in my Firefox download directory which is ~150MB and I'd like to recover its content. The original file was a very large zip archive ...
2
votes
1answer
50 views

zfs deduplication “low” ratio

In Solaris 11, in a pool named mypool I activated deduplication with zfs set dedup=on mypool Then I created two 100 MB file: file1 and its copy file1copy. Only their names are different: their ...
1
vote
1answer
98 views

Extract incomplete RAR archive under linux (desktop)

I have many not compressed rar multi-part archives on my ftp server. Under Windows, with 7zip I have no problem with extracting part1 when I have not downloaded part2 from server yet. There is ...
6
votes
1answer
76 views

How should I combine many compressed files into one archive?

I have a few hundred .tar.xz files which are almost identical (they are daily database dumps, and the database changes slowly). I believe that due to the similarities in the uncompressed files, they ...
8
votes
2answers
232 views

How to convince tar (etc.) to archive block device contents?

I have six Linux logical volumes that together back a virtual machine. The VM is currently shutdown, so its easy to take consistent images of them. I'd like to pack all six images together in an ...
1
vote
1answer
22 views

Unzip all non-existing or older files from archive

The behaviour I'd like with unzip is to extract all files, overwriting any that are older than those in the archive, not touching any that are the same age or newer, and to never prompt. The options ...
6
votes
2answers
375 views

Is there a way to convert a zip to a tar without extracting it to the filesystem?

Is there a way to convert a zip archive to a tar archive without extracting to a temporary directory first? (and without writing my own implementation of tar or unzip)
3
votes
1answer
137 views

rsync archive mode

I have been reading plenty of articles regarding rsync and its -a switch. As per theory, I have understood that it preserves a lot of properties like permission, time, group, owner, etc., but why ...
2
votes
1answer
102 views

Create animated WebP file from WebP files?

I have converted a sequence of images to WebP, and I want to compile them into an animation. I downloaded libwebp, but it's a tar.gz archive and I don't know how to install those. Is there another ...
0
votes
0answers
16 views

Archives used for software packaging and distribution [duplicate]

I want to list & know information on various archives used for software packaging and distribution regrading which Linux distribution using which? (Ex: Deb archive used by Debian, Ubuntu and Mint ...
2
votes
1answer
29 views

appendable and greppable archive on CentOS to hold many log files (logrotate on steroids)

I have a bunch of applications on a CentOS 6.3 box, which generate daily logs (text files with a very similar content) in this vein: /data/logs/app/my-2014-06-29.log ...
6
votes
3answers
402 views

Multiple tar processes writing to the same archive file at once

I am running many tasks on a Linux cluster. Each task creates many output files. When all tasks are finished, I run something like tar cf foo.tar output_files/to create a tar archive. This is a very ...
1
vote
1answer
41 views

Un-archiving single file hanging

I am trying to unarchive a very large directory. Here is what works to untar the entire thing: $ sudo tar -xjf itunes20140618.tbz --verbose x itunes20140618/ x itunes20140618/genre_artist x ...
3
votes
2answers
153 views

what are the techniques to extract files safely?

Yesterday I was making some experiments on Slitaz. It uses multiple initrd.img's to store files/changes. I wanted to extract one of its initrd.gz images (which is a cpio archive) to a folder, ...
3
votes
2answers
555 views

modify file ownership for files inside tar archive

I am working as user, and I would like to create a tar archive, which when unpacked (by root) will extract its files with root ownership (otherwise root would have to change the ownership manually for ...
1
vote
0answers
76 views

is star faster than GNU and BSD tar? [closed]

I made serveral runs (create a tarball) on OS X Mavericks with BSD tar, GNU tar and star. star is always the winner. System is iMac (Mid 2010) only running Terminal. root@time var> du -sh log/ ...
13
votes
2answers
554 views

Is that possible to integrate zip and tar.gz files as directory into the file system

I wonder if there is a way to integrate (it's a bit different from mounting, I think) compressed files as directories into the file system? E.g., one could download a compressed-file.tar.gz to his ...
2
votes
3answers
61 views

How to know the path to a specific file in a zip archive, without extracting it?

I only know the filename but not its exact location. I would like to extract only that file from the archive. And I need to know its location in the archive.
1
vote
1answer
187 views

How to extract the Nth file using 7-zip

I have an archive which, for reasons beyond my comprehension, contains 900 files all with the same name. That means that if I ask 7zip to extract them all, at the end there is just one file. The ...
8
votes
4answers
167 views

Virtual write-only file system for storing files in archive

I have an embarrassingly parallel process that creates a huge amount of nearly (but not completely) identical files. Is there a way to archive the files "on the fly", so that the data does not consume ...
2
votes
2answers
92 views

What are the differences between split and rar?

I am used to raring files -- but I am looking for something faster. I see that there is a "split" command. How does this command compare to rar? What is are the differences between split and rar?
5
votes
1answer
142 views

How do I hook into Tar with BASH?

Long Story Short I'm working with Tar archives that contain PNG images in base64 encoding. I would like to use BASH (or whatever else works) to hook into the extraction function of Tar to decode PNG ...
3
votes
2answers
3k views

Search for a file inside a tar.gz file without extracting it and copy the result to another folder

I need to search for a file inside a tar.gz file without extracting it. After that, I need to copy the file that was searched (if ever there is) to another folder. So far I have this, but the copy ...
33
votes
2answers
109k views

Can I zip an entire folder using gzip?

I'm trying to zip a folder in unix. Can that be done using the gzip command?
1
vote
4answers
353 views

Command substitution grepping ls output causes error

I'm trying to make a tar.tgz file using command substitution There are backups of 17 Aug 2012 -rw-r----- 1 ossec 502 804M Aug 17 2012 BKPMDISINT_i6nir20j.F_bkp -rw-r----- 1 ossec 502 2.7G Aug 17 ...
3
votes
1answer
169 views

I need an fstab example for archivemount (want to umount without my password)

I am using archivemount to mount one of several tar.bz files in Ubuntu. It works very nicely for me. I mount and umount frequently (I'm in a testing phase). I want a solution that will allow me to ...
15
votes
3answers
13k views

Extracting SFX files in Linux

I am trying to extract an SFX file under Linux Mint 15 (64 bit) but it's not working. I've done chmod +x on the file and tried to run it like a script with no luck (it gives me an error that there's ...
-1
votes
1answer
50 views

What are the relative merits of the various standard Unix archival utilities? [closed]

There are many archival tools for Unix, with varying degrees of availability. To make matters more confusing, many of them can write each other's formats. I am seeking more information on their ...
3
votes
2answers
1k views

How do I extract the filesystem image from vmlinux.bin?

jor1k ships a vmlinux.bin. I think there is an initrd inside, cause I don't know where else it would be. I am trying to extract the filesystem image so I can change it, but I don't know how to. I ...
6
votes
2answers
1k views

Add a file to a different path in a zip file

I have a file that placed in the following directory: folder_A/another_folder_A/file_to_add.xml Now, what I want to do is simply add the file to a folder in an existing zip archive. For example ...
1
vote
1answer
306 views

tar -c Error Messages and Source Files?

During a tar archiving operation with tar -cvf archive.tar source does the resulting tar archive that reports a file changed as we read it error still contain "some version" of the source file that it ...
1
vote
2answers
208 views

Is it better to archive/move mail based on mtime or ctime?

I have been using a perl script to archive mail found here The script uses ctime to process and decide which month sub folder to place mail. In most cases this is fine since the ctime = mtime and ...
3
votes
1answer
171 views

How to create a folder which will change its contents’ ownership to what the folder has?

In a GNU/Linux OS there is no way to change ownership of a file until you are root. But what if I want to hide my system’s username e.g. before sending a file to someone, because some things like tar ...
-1
votes
2answers
145 views

How to compress with bzip2 and gzip using xar?

In the "Why Xar" page of the Xar Google Code page it says: Additionally, this means xar can use different compression methods for each file in the archive. For instance, it might not be a good ...
1
vote
1answer
633 views

How can I view files in zip using putty?

I want to view file list in zip archive using putty without unzip the archive. Is it possible?
2
votes
1answer
187 views

Backing Up to a Compressed Archive on Linux

How would you go about backing up just some files and subdirectories of a given directory to a compressed archive so that the tree structure could then easily be recreated from that archive. ...
2
votes
1answer
140 views

How to run a command against all the files of particular types on a filesystem?

I've just recovered tons of files (distributed in a complex directory structure, having very long names, using Unicode symbols, spaces etc in names) from a damaged hard drive. Now I'd like to verify ...
2
votes
1answer
360 views

referring to files inside a jar or zip files in Linux

I am wondering if I can refer to files inside JAR or ZIP files using URLs. I mean, without using a tool (such as the Java Jar utility) but just at the operative system level. For example, if I have a ...
2
votes
2answers
156 views

Graphical archive manager that uses /tmp

I am looking for a (preferably) graphical archive manager that can be configured to use /tmp as a scratch area for decompressing. My setup is as follows: I have my local workstation with /home ...
10
votes
5answers
450 views

What Windows-related files are valueless to *nix users?

I have accumulated, from my time using Windows a good quantity of held-over filesystem copies and archives of system and data drives. I am trying to distill them down to the usable parts while ...