Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bag to destination #178

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

finoradin
Copy link

This could use some more testing, but it seems to work perfectly.

I added new arguments, "destination" and "name."

If destination is used, the contents of the source directory will all be copied into the "destination", and the bag will be saved there rather than bagging in place. If no "name" is supplied, the bag directory will be named whatever the name of the source directory is. If "name" is provided, it will be named that.

Most importantly, the manifest checksums are generated from the source files, not the copied files, so this provides a perfect chain of custody. We do this by modifying make_manifests to check if we are bagging to a destination. If so, it generates the checksums from the source and handles the paths accordingly so that they are correct in the manifest.

Could use some more testing, but I think it works!

Added new arguments "destination" and "name".

If destination is used, the contents of the source directory will all be copied into the "destination", and the bag will be saved there rather than bagging in place. If no "name" is supplied, the bag directory will be named whatever the name of the source directory is. If "name" is supplied, it will be named that.

Most importantly — the manifest checksums are generated from the source files, not the copied files, so this provides perfect chain of custody. We do this by modifying make_manifests to check if we are bagging to a destination, and if so, it generates them from the source, and handles the paths accordingly so that they are correct in the manifest.
and bug fix - i think my previous commit accidentally broke bag in place
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant