Closed mikejritter closed 4 years ago
Resolves: https://jira.lyrasis.org/browse/FCREPO-3184
BagProfile
ProfileValidationUtil
For testing:
bag-config.yml
bag-info.txt: Source-Organization: fcrepo-import-export Organization-Address: localhost External-Description: Sample bag export for fcrepo-3208
default
fcrepo-3184
java -jar target/fcrepo-import-export-0.4.0-SNAPSHOT.jar --mode export --resource http://localhost:8080/fcrepo/rest --dir fcrepo-3184 --binaries --bag-profile default --bag-config bag-config.yml --user fedoraAdmin:secret3
[fcrepo-import-export] $ cd fcrepo-3184 [fcrepo-3184] $ cp bag-info.txt bag-info.txt.bak [fcrepo-3184] $ sed -i '/Source-Organization/d' bag-info.txt [fcrepo-3184] $ sha1sum bag-info.txt >> tagmanifest-sha1.txt [fcrepo-3184] $ vim tagmanifest-sha1.txt # remove the old sha1 digest [fcrepo-3184] $ sha1sum -c tagmanifest-sha1.txt bag-info.txt: OK bagit.txt: OK
java -Dfcrepo.log.importexport=DEBUG -jar target/fcrepo-import-export-0.4.0-SNAPSHOT.jar --mode import -r http://localhost:8080/fcrepo/rest --dir fcrepo-3184 --binaries -g default -G bag-config.yml -u fedoraAdmin:secret3
bag-info.txt
[fcrepo-import-export] $ cd fcrepo-3184 [fcrepo-3184] $ mv bag-info.txt.bak bag-info.txt [fcrepo-3184] $ sha1sum bag-info.txt >> tagmanifest-sha1.txt [fcrepo-3184] $ vim tagmanifest-sha1.txt # remove the invalid sha1 digest
Resolves: https://jira.lyrasis.org/browse/FCREPO-3184
BagProfile
andProfileValidationUtil
For testing:
bag-config.yml
for use during exportdefault
profile and a directory offcrepo-3184
bag-info.txt
back into place