The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
22 views

Logrotate archive old log files which has date extention

Everyday a log file is created in my directory. But with time, there tend to be a lot of log files. I want to keep the latest 4 log files in .log format, and compress the rest and copy the compressed ...
1
vote
1answer
19 views

How to undo and revert an accidental `7z e`

I accidentally typed 7z e archive.7z and all the files ended up in my home directory when I wanted to extract them in a subfolder. How can I clean the mess and remove all those files?
1
vote
0answers
22 views

sync two zip archives (with minimal I/O)?

zip itself can freshen an archive to reflect the current filesystem (e.g. -FS). It only updates zip entries with outdated timestamps. Is there a tool that updates a 2.zip file so that it becomes ...
4
votes
1answer
24 views

How to get tar to hardlink identical content on-the-fly during archive creation?

How can I get tar (or any other program that is commonly available on Linux, e.g. pax) to hardlink duplicate content on-the-fly during archive creation? That is, I'd like to avoid hardlinking upfront ...
0
votes
0answers
29 views

Tar corrupting file attributes and skipping directories

While creating tar archives for backup purposes with 'large' numbers of files (200+), I have been repeatedly running into the following errors: tar: some/path/file.xyz: Cannot stat: Invalid argument ...
0
votes
1answer
60 views

Is there a way to use sed or awk to filter data inside a zipped file? [duplicate]

Is there a way to use sed or awk to filter data inside a zipped file? When I run a sed or awk command and send to stdout the file created is 0 bytes.
2
votes
1answer
18 views

How to split existing mailboxes based on date with procmail

I have huge mailboxes I would like to manage based on the age of their content: backup, archival or removal. I would like to split these mailboxes along the date of their contained messages. For a ...
3
votes
2answers
26 views

Help checking the integrity of TAR files for backup

I want make a backup of my Home directory and I've read a good method is to use the tar tool, and I think it suits me well since all I need to do is create a .tar of every folder in the Home directory ...
1
vote
3answers
27 views

Should I put old projects in tarballs

I never really used tarballs/archived much, except for uploads (with compression). Now I've accumulated a huge list of software projects coding experiments -- basically directories with lots and lots ...
0
votes
2answers
24 views

Protected archive (7z, RAR, Zip) open at a specific time

Are there any compression tools that are unopenable or password-protected until a specific time, at when the security is then lifted? Literally an enforced: "Do not open until --/--/----"
4
votes
3answers
340 views

Unpack file compressed in .txz and .tar with one command

I have a file compressed in *.txz. After unpacking it I received a *.tar file. Is there any way to unpack it twice with one command? I mean unpack file (*.tar).txz with one command? For know I'm do ...
2
votes
0answers
254 views

Password protected zip archives open without password

I have a zip archive that is password protected in linux(the password is "secret"). However, whenever I try to open the zip file I am not prompted for a password or anything. I also have a python ...
-2
votes
1answer
110 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
75 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
49 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
85 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
160 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
79 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
262 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
388 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?
3
votes
1answer
173 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 > ...
3
votes
2answers
70 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
193 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
95 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
326 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
203 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
366 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
30 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 ...
7
votes
2answers
655 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
223 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
159 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
34 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
554 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
52 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
199 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, ...
4
votes
2answers
1k 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
97 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
753 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
68 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
210 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
208 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
96 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
160 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
5k 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 ...
63
votes
2answers
196k 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
472 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
198 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
14k 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
54 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 ...