LibraryOfCongress / bagit-python

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

Create a bag at A for an existing folder at B, do not move anything #155

Open simonmeggle opened 2 years ago

simonmeggle commented 2 years ago

Question, is it possible to create a bag at location A for an existing data directory at B without moving the data into the bag's data/ subdirectory?

My use case is that I want to write a plugin for the monitoring system Checkmk which makes it possible for IT admins to monitor files fo their fixity. To be more concret, let's say a file server shares tons of long-term data which must not change never ever. Bagit would be a perfect fit for a python-based check script which alarms if the integrity of the data is violated.

So I am searching for a way to use Bagit completely non-invasive, because moving the monitored (shared) folder is a no-go. I am sure that having the payload outside of the bag directory is against the Bagit convention 2.1.2, but is there any workaround I can use to achive my goal?

Thanks, Simon

PS: I also have seen #67 which is a similar use case.