Modify a BagIt archive

The Bash script modify_bagit allows to modify the version and/or checksum algorithm of an archive, created according to the BagIt File Packaging Format, as designed by the Library of Congress and standardised under RFC 8493. The program is part of Bash AVpres, released under a 3-Clause BSD License and provided “as is” without warranty or support of any kind.

Documentation

A short help message is embedded into the script:

$ modify_bagit -h

Usage:
  modify_bagit (-i|-b) <input_folder> [-v <new_version>]
  modify_bagit -h | -x
Options:
  -i  BagIt archive folder
  -b  is an alias of -i
  -v  new BagIt version
  -h  this help
  -x  advanced options with their default arguments
Default dependencies:
  one of sha512sum, md5sum, sha1sum, sha256sum, xxhsum or crc32
See also:
  man modify_bagit
  https://avpres.net/Bash_AVpres/
About:
  Abstract: Modify a BagIt archive of a folder, according to RFC 8493
  Version:  2023-03-26

$

A detailed manual page is installed together with the script (man modify_bagit) and is available also as a PDF file on this website.


2023-03-26