Metadata File
About
The metadata file is important and must be backed up and also stored alongside the parts too. In a nutshell, keep many copies of this file -- it makes restoring easier.
The file contains the checksum values of each part. This is important because if you feed the erasure coding module with a damaged part, it could result in failure to reconstruct the archive. If a part fails, arcK will automatically delete the damaged part - afterall, it's useless now. But remember, you can restore the archive with just 3 parts.
Fixing damanged or lost metadata file
If you need to recreate the metadata file, generate sha256 checksum of each part and store in the metadata file on one line. This can be in any order. Nb. End the line with a semi-colon.
archive_name.0=sha256hash;archive_name.1=sha256hash; ...
Name the file with the same name of the parts. For example, if the archive parts are called 'pictures.X' then name the metadata file 'pictures.m'
If you are not confident of the integrity of the parts, then use 'skip'. For example:
archive_name.0=936a185caaa266bb9cbe981e9e05cb78cd732b0b3280eb944412bb6f8f8f07af;archive_name.1=skip; ...
This will ensure the program continues without giving you an error, then the erasure coding module will attempt to check the archive parts integrity. This may fail, as giving this module bad data may result in failure to restore; hence why the metadata file is of utmost importance In this case, try renaming each part and then see if the restoration works until you find the bad part. There may be more than one bad part, which makes this process complex.