|
I have a simple backup server that rsyncs several network shares and then compresses them into a zip file that is loaded onto tapes.
zip -r /media/1tb/backup/compressed/reports.zip /media/1tb/backup/nightly/reports/
And about half way through i get
adding...
Started by The Digital Ninja on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
FAT16 is limited to 2Gb per file that it doesn't generate a single archive....
How large is the file at the point of the error?
The problem is most likely the filesystem on the drive you are backing up to not supporting files large enough.
|
|
Hopefully you've heard of the neat hack that lets you combine a JPG and a Zip file into a single file and it's a valid (or at least readable) file for both formats. Well, I realized that since JPG lets arbitrary stuff at the end, and ZIP at the beginning...
Started by Tom Ritter on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Basically you find-ready-to-use #Now we....
Now alot of processors ignore explorer (not that you might care ;P) See Zip APPNOTE for info on the file format.
If you have only one .zip file, that means the current file).
|
|
I need to make a file format for my software. The data is basic key/value pairs and images. The options are:
1) One XML file that has CDATA tag with binary encoded image files or image files encoded in a RGBRGBRGB or RGBARGBARGBA format.
2) One XML file...
Started by Memb on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
However, a single XML ....
When using a single XML file with embedded images you would have to use base64 encoding to save your.
In general I would prefer the zipped option as the file.
Easily roll your own version of such a format.
|
Ask your Facebook Friends
|
Given a path to a file, how can I validate that the file is a password-protected zip file?
i.e., how would I implement this function?
bool IsPasswordProtectedZipFile(string pathToFile)
I don't need to unzip the file -- I just need to verify that it's ...
Started by frankadelic on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
A zip can contain some entries) Console....
Var file = @"c:\testfile.zip"; FileStream fileStreamIn = new is not placed on the file, but on the individual entries within the file.
For the first entry in the zip file.
|
|
I am using java's java.util.zip api to add files and folders to a zip file, but when i add multiple files into the same folder, it deleted the old contents. Is there any way i can add files into the zip file without modifying existing contents in the ...
Started by stanley on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If two....
If you want to add a new file to an existing zip file, you must first unzip everything, then add file and adds all files from the existing zip to the 'new' zip before adding the extra files.
|
|
I am looking as a new file format specification and the specification says the file can be either xml based or a zip file containing an xml file and other files.
The file extension is the same in both cases. What ways could I test the file to decide if...
Started by Phil Hannent on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
The ones for ZIP archives are listed on the ZIP it - an XML file is exceedingly unlikely to be a valid zip file, or could check the magic numbers might have a function....
You could look at the magic number of the file.
|
|
I once read somewhere that it takes longer to download a zipped file than an unzipped file of the same size, due to the nature of the zip file.
Is this true or nonsense?
edit: i'm speaking about HTTP traffic
Started by jao on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at superuser):
So when compression is turned on, a 1 MB zip file will be transferred of the file....
Enabled as it will have to open and unpack the zip file to check the contents rather than being able efficiently compress data 2 times.
|
|
I have a path to a zip file. I don't know how to
retrieve the file from the hard drive or open that zip file. Does anyone know? The zip file is a zip file, but it's really a .epub file.
Started by Alex on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://docs.python.org; file = epub.open('some_file.txt') >>> file.read().
ZipFile(file_name[, mode[, compression[, allowZip64]]]) from the zipfile package.
|
|
I have a zip file containing a folder structure like
main-folder/ subFolder1/ subFolder2/ subFolder3/ file3.1 file3.2 I would like to rename folder main-folder to let's say versionXY inside that very zip file using Java.
Is there a simpler way than extracting...
Started by Simon07 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Zip doesn't have file....
Some particular at the end of the archive, each component file is preceded by its file name.
ZipArchiveEntry
Zip is an archive format, so mutating generally involves rewriting the file.
|
|
I am doing Python challenge in Ruby. I need to read the file contents and comments from a Zip file. The content is no problem with the RubyZip gem but I am unable to get the comments out. Any ideas?
Started by Gerhard on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Require 'zip/zip' Zip::ZipFile.open("6.zip") do |....
Require 'zip/zip' Zip::ZipFile.open('zip to get the comment from a file.
Which returns the zip file's comment, if it has one.
|