<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Ho there,<div><br></div><div>I've got a backup strategy that seems to be working fine for me, but I'm ever looking for ways to increase confidence that the backups I'm making of Data.fs are actually functional and can be restored from properly.</div><div><br></div><div>To that end, I was reading some info on this page:</div><div><br></div><div>&nbsp;&nbsp;<a href="http://wiki.zope.org/ZODB/FileStorageBackup">http://wiki.zope.org/ZODB/FileStorageBackup</a></div><div><br></div><div>and playing with the fstest and fsrefs&nbsp;scripts&nbsp;referenced&nbsp;there.&nbsp;&nbsp;I've&nbsp;discovered&nbsp;a&nbsp;problem&nbsp;(I&nbsp;think).&nbsp;&nbsp;Here's&nbsp;the&nbsp;scenario:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$ python fstest.py -v Data.fs</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Traceback (most recent call last):</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp; File "fstest.py", line 228, in &lt;module&gt;&nbsp; &nbsp; main()</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp; File "fstest.py", line 215, in main</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp; &nbsp; VERBOSE = VERBOSE + 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">UnboundLocalError: local variable 'VERBOSE' referenced before assignment</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The same error arises in using fsrefs, although there the line where the error is raised reads&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;&nbsp; &nbsp;VERBOSE += 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">By changing the declaration of VERBOSE from&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;&nbsp;VERBOSE = 0</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">to&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&nbsp;&nbsp;VERBOSE = 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the error goes away, but of course you always get verbose output, which we don't really need or want for automated integrity checks, do we?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Am I using the right tool for this job? &nbsp;Is there a better way out there to create automated integrity checks of Data.fs files restored from repozo-generated backups?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">C</div><br><div> <span class="Apple-style-span" style="font-size: 12px; "><div><div>********************************</div><div>Cris Ewing</div><div>Webmaster, Lead Developer</div><div>Department of Radiology Web Services</div><div>University of Washington</div><div>School of Medicine</div><div>Work Phone: (206) 616-1288</div><div>Cell Phone: (206) 708-9083</div><div>Pager: &nbsp; &nbsp; &nbsp;(206) 559-2306</div><div>E-mail: <a href="mailto:cewing@u.washington.edu">cewing@u.washington.edu</a></div><div>Web: <a href="http://www.rad.washington.edu">http://www.rad.washington.edu</a></div><div>*******************************</div></div></span> </div><br></div></body></html>