Questions tagged [archive]

A location or file that stores other files or data, normally accompanied by compression, encryption, sorting or organizing.

An archive is a place that you can store files or other data for storage or for sorting.

Archives can be a number of things such as a Database or a Zip or Cab file.

Normally the archive that you place the files or data into, gives you some sort of functionality such as encryption, compression or data querying functionality.

2445 questions
16
votes
4 answers

How to unzip a big zip file containing one file and get the progress in bytes with swift?

I try to unzip a big zip file containing only one item (more than 100MB) and like to show the progress during unzipping. I found solutions where the progress can be determined based on the amount of files unzipped but in my case I have only one big…
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
15
votes
2 answers

Creating a tar.gz archive with Maven

I have a Maven project, where under src/main directory there is a sub dir called output. this folder needs to be packaged into tar.gz. when using the assembly plugin as follows: From the pom.xml: front
rperez
  • 8,430
  • 11
  • 36
  • 44
15
votes
2 answers

Extract a specific folder to specific directory from a tar.gz

I have searched and found how to the two portions of what I want but nothing that would allow you to do it in whole.... What I would like to do is extract a specific folder from a tar.gz to another folder in a different path that how it is in the…
Yevgen
  • 767
  • 2
  • 9
  • 22
14
votes
3 answers

libarchive - Extract to specified directory

I have a tar file I want to extract with libarchive to a specific directory. How can I make libarchive extract into to any directory I want? At the moment it always extracts into my program's working directory. I looked at this answer but all this…
oggmonster
  • 4,672
  • 10
  • 51
  • 73
14
votes
1 answer

How to build and archive iOS application?

How to build and archive or archive only iOS application? I want to archive to .ipa file but cannot select "Product>Archive" or "Product>Build for>Build for Archive" menu (is disabled). I am using Xcode 4.1 on OS Lion. Have any special configuration…
anhduongt
  • 1,119
  • 2
  • 12
  • 17
14
votes
3 answers

cpio VS tar and cp

I just learned that cpio has three modes: copy-out, copy-in and pass-through. I was wondering what are the advantages and disadvantages of cpio under copy-out and copy-in modes over tar. When is it better to use cpio and when to use tar? Similar…
Tim
  • 1
  • 141
  • 372
  • 590
14
votes
2 answers

SQL Database Best Practices - Use of Archive tables?

I'm not a trained DBA, but perform some SQL tasks and have this question: In SQL databases I've noticed the use archive tables that mimic another table with the exact same fields and which are used to accept rows from the original table when that…
matrix4use
  • 611
  • 1
  • 6
  • 20
13
votes
3 answers

PowerShell: Extract specific files/folders from a zipped archive

Say foo.zip contains: a b c |- c1.exe |- c2.dll |- c3.dll where a, b, c are folders. If I Expand-Archive .\foo.zip -DestinationPath foo all files/folders in foo.zip are extracted. I would like to extract only the c folder.
antonio
  • 10,629
  • 13
  • 68
  • 136
13
votes
6 answers

How can my Java program store files inside of its .jar file?

I know that .jar files are basically archives as well as being applications. What I'm asking is how can I store data(actual files not just strings) packed inside my program? I want to do this within my Java code. The reason for this if your…
liamzebedee
  • 14,010
  • 21
  • 72
  • 118
13
votes
2 answers

How to read contents of a csv file inside zip file using PowerShell

I have a zip file which contains several CSV files inside it. How do I read the contents of those CSV files without extracting the zip files using PowerShell? I having been using the Read-Archive Cmdlet which is included as part of the PowerShell…
Ishan
  • 3,931
  • 11
  • 37
  • 59
13
votes
2 answers

How to exclude directories with TAR on OSX?

This is my current directory structure on my MacOSX-Machine: kuli at fumpenwuppich in /volume/workspace on master [!?$] $ ls -l total 0 drwxr-xr-x 4 kuli staff 136 Nov 28 16:02 conf drwxr-xr-x 3 kuli staff 102 Nov 28 16:23 html drwxr-xr-x …
13
votes
1 answer

Dynamic archive name in Xcode

I'm updating my archive process to make it easier to use. I already created some schemes and build configurations that avoid me to manually update constants between 2 archives, but now I want to go deeper. When I edit a scheme, the "Archive" section…
Imotep
  • 2,006
  • 2
  • 25
  • 38
13
votes
3 answers

maven: multi-module project assembly into single jar

I have a multi-module project and want to create a single jar containing the classes of all my modules. Inside my parent POM, I declared the following plugin: org.apache.maven.plugins
Jeroen
  • 527
  • 2
  • 7
  • 19
13
votes
1 answer

Turn thin archive into normal one

I'm building V8, and by default it builds as a "thin" archive, where the .a files essentially just contain pointers to the object files on your filesystem instead of containing the object files themselves. See man ar for details. I want to be able…
Matt Kline
  • 10,149
  • 7
  • 50
  • 87
13
votes
3 answers

Xcodebuild Archive Location

I'm currently trying to build an .xcarchive using this command line: xcodebuild -project onething.xcodeproj -target onething archive This places the .xcarchive within a hard to find file location, so I was wondering if there's a configuration to be…
averageUsername123
  • 725
  • 2
  • 10
  • 22