-
Notifications
You must be signed in to change notification settings - Fork 6
How to get docWorks output into Veridian
This tarball is the backup of exactly what DDD delivered. You're going to be moving files into different places next, so you want to be able to get back to the original delivery state.
For a given batch BATCH_X:
- Log onto diglibdata1 as the ddd user.
- cd /ifs/ddd/bluemountain/workflow/4_final_output_from_ddd
- tar czvf /ifs/ddd/bluemountain/deliveries/batch_x.tgz BATCH_X
- rsync -avz /ifs/ddd/bluemountain/workflow/4_final_output_from_ddd/BATCH_X/astore/ /ifs/bluemountain/astore/
- rsync -avz /ifs/ddd/bluemountain/workflow/4_final_output_from_ddd/BATCH_X/pstore/ /ifs/bluemountain/pstore/
There is no git on diglibdata1, so you'll have to do this from a different machine (perhaps libserv14).
You may need to convert all the DOS CR/LF endings to Unix CRs first; use the dos2unix command in Linux: find . -type f -exec dos2unix {} +
- git checkout -b batch_x
- (get the stuff in there, probably using rsync)
- git add -A
- git commit -m"Adds metadata for batch X to repository."
- git push -u origin batch_x
- git pull
- git checkout batch_x
As root(?)
- rsync -avz --log-file=/tmp/batch_x_astore.log /mnt/ddd/bluemountain/workflow/4_final_output_from_ddd/BATCH_X/astore/ /mnt/data/projects/bluemountain/astore/
- Change permissions.
Step 1: Copy output files from lib-docworks1 to diglibdata1 (Isilon).
One method: mount [email protected] on one of the docWorks workstations, then copy from lib-docworks1/OUT.
Then rsync them to the bluemountain/ partition: rsync the astore/ rsync the pstore/
Step 2: Merge metadata into GitHub tree. You will probably have to convert all the DOS CR/LFs to Unix CRs; use the dos2unix in Linux:
- find . -type f -exec dos2unix {} +
- git branch localnew
- git checkout localnew
- (get the stuff in there, probably using rsync)
- git add --all .
- git commit
- git push -u origin localnew
Then, on libserv14, as dlconsulting user:
- git pull
- git checkout localnew
Step 3: Prepare for ingest on libserv14
- Update the git repository (do this as the dlconsulting user)
- Copy astore files from diglibdata1/bluemountain/astore to /usr/share/Bluemountain. Must do this as root and then change permissions. For example,
- cd /usr/share/BlueMountain/astore/periodicals/
- [root@libserv14 periodicals]# rsync -avz /mnt/ddd/bluemountain/deliveries/batch05/Niederrheinische_Musik-Zeitung/astore/periodicals/bmtnabi .