This tool provides functionality for splitting BagIt bags into a collection of smaller bags, and for "unsplitting" these bags back into a single bag mostly identical to the original.
To see the full command-line help text, do:
$ python bag-split.py --help
None, but this script operates on split bags created by the Library of Congress' bagit-java tool.
$ bag splitbagbysize <BAG> --maxbagsize 30
$ python bag-split.py split <BAG>
The first command above uses the official BagIt command-line utility
(bag
) to split the original
The second command uses this tool to verify the split bags against the original bag for integrity and completeness, as well as to create an additional "metadata" bag among the split bags; the /data directory of the metadata bag will contain the original bag's manifests and bag-info.txt file.
$ python bag-split.py unsplit <DIRECTORY CONTAINING BAGS>
This command creates a new directory called MERGED_BAG
by merging the
bags found inside
See LICENSE.txt