• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

BagIt (command line tool)

Page history last edited by Scott Carlson 5 years, 8 months ago

BagIt (command line tool)

 

BagIt is a hierarchical file packaging format for the storage and transfer of digital content. A "bag" encloses descriptive "tags" and a "payload" but does not require knowledge of the payload's internal semantics. This BagIt format should be suitable for disk-based or network-based storage and transfer.

 

Specifications on BagIt can be found here: http://www.cdlib.org/services/uc3/docs/bagitspec.html

 

Overall usage:

bag <operation> [operation arguments]


Creating bags:

bag create [NameOfbag] [PathToBag]


Verifyvalid: checking if bag contents match the manifest.
bag verifyvalid [PathToBag]

Result is True means that the bag is valid; Result is False means that something in the bag is altered. Read message for more information.


bag verifyvalid [PathToBag] --failmode FAIL_SLOW
The --failmode FAIL_SLOW operator allows BagIt to continue checking the rest of the bag even if errors occur.


Verifytagmanifests: verifies the checksums in all tag manifests.
bag verifytagmanifests [PathToBag]
Result is True means that the bag is valid; Result is False means that something in the bag is altered. Read message for more information.


bag verifytagmanifests [PathToBag] --failmode FAIL_SLOW
The --failmode FAIL_SLOW operator allows BagIt to continue checking the rest of the bag even if errors occur.


Verifycomplete: verifies the completeness of a bag.
bag verifycomplete [PathToBag]
Result is True means that the bag is valid; Result is False means that something in the bag is altered. Read message for more information.


bag verifycomplete [PathToBag] --failmode FAIL_SLOW
The --failmode FAIL_SLOW operator allows BagIt to continue checking the rest of the bag even if errors occur.


Verifypayloadmanifests: verifies the checksums in all payload manifests.
bag verifypayloadmanifests [PathToBag]
Result is True means that the bag is valid; Result is False means that something in the bag is altered. Read message for more information.


bag verifypayloadmanifests [PathToBag] --failmode FAIL_SLOW
The --failmode FAIL_SLOW operator allows BagIt to continue checking the rest of the bag even if errors occur.


Update: updates the manifests and (if it exists) the bag-info.txt for a bag. Compares the bag contents to the values in the manifest and adds any new items as well as checksums.
bag update [PathToBag]

Comments (0)

You don't have permission to comment on this page.