After a PBCS snapshot is extracted, modified, and re-archived, it is no longer accepted as a valid Snapshot by PBCS. Even when performing no modifications to the source files, PBCS will not accept an archive that has seemingly been modified.
When uploading these snapshots, PBCS will refuse to display the size of the uploaded snapshot, and the option to deploy the snapshot is unavailable.
A valid PBCS snapshot archive appears as below:
The Unix command being executed, zipinfo, describes the zip file. The output of this command lists the number of items included within the archive.
After extracting and re-archiving the folder with the default compression method, the output archive appears as below:
This snapshot is no longer valid for two reasons:
Therefore, to generate a valid Snapshot, any archive must:
The restrictions defined in the Solution above may be problematic or difficult to perform manually, so I’ve developed a Java program which can perform the extract and archive functions properly — you can download it below.
To setup the program:
To extract a snapshot:
To archive a snapshot:
If you wish to use this script/program, please be sure to use it to both extract AND archive a snapshot. This will ensure the snapshot will be properly processed.
This script has not been tested extensively. If any issues are encountered, please contact us so we can prepare resolutions.