Create a BagIt archive

The Bash script make_bagit is part of Bash AVpres, released under a 3-Clause BSD License and provided “as is” without warranty or support of any kind. The program creates an archive of a folder, according to the BagIt File Packaging Format, as designed by the Library of Congress and standardised under RFC 8493. This can be achieved either by transforming a folder into a BagIt archive (this is faster) or by creating a new BagIt archive containing the folder (this is slower).

Documentation

A short help message is embedded into the script:

$ make_bagit -h
Usage:
  make_bagit (-b <input_folder> | -i <input_folder> -o <output_folder>)
  make_bagit (-h|-x)
Options:
  -b  replace the input folder by its BagIt archive
  -i  input folder
  -o  BagIt archive folder
  -h  this help
  -x  advanced options with their default arguments
Dependencies:
  gcp; one of md5deep, sha1deep, sha256deep or sha512sum (default)
See also:
  man make_bagit
  https://avpres.net/Bash_AVpres/
About:
  Abstract: Make a BagIt archive of a folder, according to RFC 8493
  Version:  2020-10-17
$

The detailed manual page is installed together with the script (man make_bagit) and is available also as a PDF file.


2020–10–16