-
Notifications
You must be signed in to change notification settings - Fork 60
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
added new make commands for importing and exporting in fedora 6 #369
added new make commands for importing and exporting in fedora 6 #369
Conversation
Renamed the old commands to fcrepo5-import and fcrepo5-export
I might have done this wrong, but I'm getting an error.
Here are the results:
The content is still not in fcrepo. |
I've not had this happen, but it sounds like the tar file might have gotten corrupted or something. I don't normally add the SRC and DEST to the .env. I just run |
It also looks like the TAG in sample.env is set to 3.0.0. I'm not sure when that happened, but maybe that makes a difference. I was running on 2.0.10 I think |
After doing some digging, it looks like this won't put the items into the Fedora database. In order to do that we need to restart tomcat with the flag This can be manually added in This is not an ideal solution, so I'm hoping we can have some discussion on the next tech call about how to proceed with this. |
After some fiddling, and lots of help from @whikloj I was able to get this working. Fedora will rebuild from the ocfl-root directory on a fresh start, so by removing the fcrepo database we can trick it into a rebuild. The process is now:
I've tested this with both the site template and isle-dc and in both cases it appears to work as expected. The latest commit adds steps 2, 4, and 5 to the isle-dc makefile. This should be ready to test now |
Just double checking @joshdentremont (and big thanks for yours and @whikloj 's work) are the steps @rosiel laid out above still the way to test? If not, could I ask if someone could expand on how folks should test please? Thank you! |
Testing should be mostly the same as described above, but removing the fedora volume is now part of the Makefile, so it's not really necessary. I think the simplest way to do it, and be confident it works as intended, would be to:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this with the instructions Josh gave in his last comment and I was able to import the fedora files on a fresh starter site install with no issues.
Added new make commands for importing and exporting in fedora 6, and renamed the old commands to fcrepo5-import and fcrepo5-export
This should resolve #368
In fedora 6 we don't need to run any import or export utilities, we just need to copy the /data/home/data/ocfl-root directory. The new commands do that, in the same way we copy our public files directory. For anyone still using fedora 5, they can use the old commands, which have been renamed to fedora5-export and fedora5-import.
To test the new commands:
make fcrepo-export
make fcrepo-import