LibraryOfCongress / bagit-python

Work with BagIt packages from Python.
http://libraryofcongress.github.io/bagit-python
216 stars 85 forks source link

First time using Bagit to make an AIP #133

Open EmEbner opened 5 years ago

EmEbner commented 5 years ago

Hello,

My name is Eric Ebner, I am an intern at the Moravian Archives located in Bethlehem, PA, and I am looking for some help using Bagit to create AIPs through BitCurator. In the past, I have used Bagger to create an AIP for school course through BitCurator, however, the newest version of BitCurator does not contain Bagger so Bagit is currently the only option. I am having a hard time finding a step by step guide on how to use Bagit it to create an AIP so if anyone could please offer some help it would be appreciated! I am also not used to using coding to much or anything of the sort so Bagit's command line is a bit scary. Again thanks for any help provided!

Best,

Eric

edsu commented 5 years ago

Hi @EmEbner,

It looks like BitCurator comes with python-bagit pre-installed which takes some of the pain away. As you note, bagit-python is a command line utility so you do need to interact with it in a terminal window instead of a desktop GUI application.

If you are able to open a terminal window, you simply tell bagit the directory that contains the content you want to bag up:

bagit.py /path/to/my/data

That will create the bag in place, and start a bag-info.txt which you can update with more detailed metadata. If you prefer you can pass some of the metadata on the command line too:

bagit.py --contact-name "Eric Ebner" --external-description "Moravian Archives data" /path/to/my/data

Then if you want to validate the bag you can:

bagit.py --validate /path/to/my/bag

Does that help at all?

EmEbner commented 5 years ago

Hi Ed,

It does help, thank you! My colleague and I at the Archives ended up downloading Bagger to create a sample AIP. We’ve been taking notes one what to do if Bagit has to be used in the future. Thanks again for your response.

Take care,

Eric

On May 2, 2019, at 12:38 PM, Ed Summers notifications@github.com wrote:

Hi @EmEbner,

It looks like BitCurator comes with python-bagit pre-installed which takes some of the pain away. As you note, bagit-python is a command line utility so you do need to interact with it in a terminal window instead of a desktop GUI application.

If you are able to open a terminal window, you simply tell bagit the directory that contains the content you want to bag up:

bagit.py /path/to/my/data That will create the bag in place, and start a bag-info.txt which you can update with more detailed metadata. If you prefer you can pass some of the metadata on the command line too:

bagit.py --contact-name "Eric Ebner" --external-description "Moravian Archives data" /path/to/my/data Then if you want to validate the bag you can:

bagit.py --validate /path/to/my/bag Does that help at all?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.