| Crates.io | bagr |
| lib.rs | bagr |
| version | 0.3.0 |
| created_at | 2022-02-11 01:31:15.688212+00 |
| updated_at | 2022-03-01 23:08:55.887865+00 |
| description | A CLI for interacting with BagIt bags |
| homepage | https://github.com/pwinckles/bagr |
| repository | https://github.com/pwinckles/bagr |
| max_upload_size | |
| id | 530547 |
| size | 133,777 |
bagr is a command line utility for interacting with
BagIt bags.
It is still under active development, but bag creation is feature complete.
The releases page has pre-built binaries that should work on common OSes and architectures. You do not need to install Rust to use them.
./bagr help to verify it workscargo install bagrbagr helpBy default, bagr will turn the contents of the current directory
into a bag by invoking:
bagr bag .
If instead, you'd like to create a bag by copying the contents of a source directory into a destination bag, then you can do by invoking:
bagr bag src/dir dst/bag
By default, sha512 is used; this algorithm can be changed using the
--digest-algorithm option.
On Mac systems, .DS_Store files can often sneak into unwanted
places. These files can be excluded from the bagging process by using
the --exclude-hidden-files flag. Note this will delete hidden
files when creating a bag in place.
If you've modified the payload or tag files of a bag after creating
it, bagr can also be used to recompute all of the digests and update
the appropriate manifest files by executing the following:
bagr rebag path/to/bag
By default, it will use the same digest algorithms as were originally
used in the bag. If you wish to change the algorithms, you can do so
by specifying the --digest-algorithm option.
fetch.txt is not supportedfetch.txt