<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">IIRC, the 'loader' also supports a delete command, where you pass it a<br>
list of PDB entries to delete. We just need to work out how to<br>
generate the list of files to delete (and then update) without<br>
recourse to the file time stamps (which is what we use currently<br>
IIRC).<br>
<br></blockquote><div><br>Indeed there was a "delete entry" option! It seems that Henning implemented it in the batch runner. The weird thing is that in the delete method from the original code no records were being deleted from the db because the execute statement call was missing! So I fixed that one and now it seems to be working.<br>
<br>The command looks like:<br><br>java -cp OpenMMSbatch.jar org.rcsb.openmms.apps.rdb.PDBase LenientParse \<br>data=/nfs/data/dbs/pdb/data/structures/all/mmCIF \<br>manifest=file:///nfs/data/dbs/pdb/ls-lR \<br>log=PDBASE.LOG \<br>
exclude=ExcludeStructureIDs.list \<br>entries=102M,102D,103D,105D \<br>pdblist=allpdb_ex1.list \<br>dbUrl=jdbc:mysql://localhost/pdbase dbDrv=com.mysql.jdbc.Driver dbUsr=user dbPwd=pwd \<br>action=DeleteSingleEntry<br><br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
We discussed tracking the data in the OBSOLETE file, but rejected that<br>
idea because it changes weekly, so we need to make sure not to skip a<br>
week... However, in comparison to building the whole db from scratch<br>
every week, it doesn't seem like too much of a compromise. <br>
<br></blockquote><div><br>I agree there, in the worst case we would need a full reload from time to time<br><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Once we have a reliable way to generate the list of deletes, updates,<br>
and additions, we can then pass those to the loader appropriately.<br>
<br></blockquote></div><br>Can those be taken from rsync somehow?<br><br>Jose<br><br>