archive

Gathering OS and tool version numbers for build archive purposes

Our automated build machine needs to archive the version numbers of the OS plus various tools used during each build. (In case we ever need to replicate exactly the same build later on, perhaps when the machine is long dead.) I see the command "msinfo32.exe" can be used to dump a whole load of system version information, which we might...

How to combine several C/C++ libraries into one?

I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries? ...

Archiving VMware images on ESXi

Is there a way to compress a VMWare image on a ESXi server for archival purposes? ...

On a unix/linux system how can I learn more about a mylib.a archive?

In this particular case I'm trying to discover if a mylib.a file is 32 or 64 bit compatible. I'm familiar with ldd for shared objects (mylib.so) but how do I inspect a regular .a archive? ...

How can I recover files from a corrupted .tar.gz archive?

I have a large number of files in a .tar.gz archive. Checking the file type with the command file SMS.tar.gz gives the response gzip compressed data - deflate method , max compression When I try to extract the archive with gunzip, after a delay I receive the message gunzip: SMS.tar.gz: unexpected end of file Is there any way to...

What's the best "file format" for saving complete web pages (images, etc.) in a single archive?

I'm working on a project which stores single images and text files in one place, like a time capsule. Now, most every project can be saved as one file, like DOC, PPT, and ODF. But complete web pages can't -- they're saved as a separate HTML file and data folder. I want to save a web page in a single archive, and while there are several ...

What compression/archive formats support inter-file compression?

This question on archiving PDF's got me wondering -- if I wanted to compress (for archival purposes) lots of files which are essentially small changes made on top of a master template (a letterhead), it seems like huge compression gains can be had with inter-file compression. Do any of the standard compression/archiving formats support ...

What's the best way to cache an archive file?

We have a project page which consists of users' files, multimedia stuff, etc and we want to allow the user to export all this out into a single zip file. We're using unix and mysql to store all of these currently and our primary goal is to minimize load/performance time from all the processing and compiling all the files into a zip file....

Why do people use tarballs?

As a primarily Windows developer, perhaps I'm missing something cultural in the Linux community, but it has always confused me when downloading something that the files are first put into a .tar archive, then zipped. Why the two step process? Doesn't zipping achieve the file grouping? Is there some other benefit that I'm not aware of? ...

zcat won't unzip files properly

Hi, I need to unzip a compressed file on the fly in my program. It works when I try it on my own linux computer, but for some reason the school computers fail whenever I tell them to do it. To unzip I'm using the following command: zcat /file/address/file.tar.gz and get the error: /file/address/file.tar.gz.Z: No such file or dir...

python (jython) archiving library.

Is there a neat archiving library that automatically handles archiving a folder or directories for you out there? I am using Jython, so Java libs are also open for use. -UPDATE- Also Im looking for timestamp archiving. ie archive-dir/2008/11/16/zipfilebypreference.zip then the next day call it again and it creates another folder. Im s...

How do I extract a tar file in Java?

How do I extract a tar (or tar.gz, or tar.bz2) file in Java? ...

Build Tar file from directory in PHP without exec/passthru

So I have a client who's current host does not allow me to use tar via exec()/passthru()/ect and I need to backup the site periodicly and programmaticly so is there a solution? This is a linux server. ...

How do I archive a MySQL databases?

I have a MySQL database that I want to archive. What is the best way to do this? Note: I don't want to just do a backup. I want to do a one time export of the data for long term storage in a way that I can get at on a later date. Particularly, I want to not be tied to MySQL, a database or preferably any given software (I'd really like i...

How would someone download a website from Google Cache?

A friend accidentally deleted his forum database. Which wouldn't normally be a huge issue, except for the fact that he neglected to perform backups. 2 years of content is just plain gone. Obviously, he's learned his lesson. The good news, however, is that Google keeps backups, even if individual site owners are idiots. The bad news is, ...

Save entire desktop state?

I'd love to have a utility that would save and restore my current desktop state, much like sessions in Firefox. At best, it would freeze every application's state, open window positions, etc. and provide a scriptable interface to restore them at any time, just as you'd left them. More realistically, I could make a list of what applicat...

dealing with zip files in php

Is there a library for crating/extracting zip files in php? The ZipArchive class works erratically, and this is mentioned on php.net : (for every function I checked) ZipArchive::addEmptyDir (No version information available, might be only in CVS) ...

Database Schema Design - Tips for improving ability to archive?

I am designing a table in the database which will store log entries from the application. There are a few things which is making me think about this design more than usual. However these log entries will be used at runtime by the system to make decisions so they need to be relatively fast to access. They also have the problem is that ...

Why would a TAR file be smaller than it’s contents?

I have a directory I’m archiving: $ du -sh oldcode 1400848 $ tar cf oldcode.tar oldcode So the directory is 1.4gb. The file is significantly smaller, though: $ ls -l oldcode.tar -rw-r--r-- 1 ieure ieure 940339200 2002-01-30 10:33 oldcode.tar Only 897mb. It’s not compressed in any way: $ file oldcode.tar oldcode.tar: POSIX tar arch...

how to obtain historical information about code and websites

I remember a couple of websites that seemed to be pretty ground-breaking a long time ago, but they are long gone now. One of them was "Gabocorp.com" ... it had a nice flash interface. Another one was "Octopus.com" ... it was a cool-looking web-based 'mashup' of web content. Is there a way to find out who coded these sites and contact t...