Changeset 3845
- Timestamp:
- 02/05/08 11:25:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/oai_ingest_new2.py
r3839 r3845 241 241 242 242 # The directory to put things for a tape backup (should already exist) 243 backupdir = '/disks/glue1/oaiBackup/' 243 #backupdir = '/disks/glue1/oaiBackup/' 244 # TODO: uncomment above on live system 245 backupdir = data_dir + "/backups/" 244 246 245 247 # the following dirs define where the specific documents should go 246 originals_dir = data_dir + "/oai/originals/"247 discovery_dir = data_dir + "/discovery/"248 originals_dir = data_dir + "/oai/originals/" 249 discovery_dir = data_dir + "/discovery/" 248 250 249 251 # Create/clear the 'in' directory pristine copy of the discovery records … … 308 310 backupdir_base = backupdir + datacentre + "_" + strftime("%y%m%d_%H%M") 309 311 310 this_backupdir = backupdir_base + "_originals "312 this_backupdir = backupdir_base + "_originals/" 311 313 fileUtils.makeBackUp(originals_dir, this_backupdir) 312 314 … … 314 316 fileUtils.cleanDir(originals_dir) 315 317 fileUtils.cleanDir(discovery_dir) 316 fileUtils.cleanDir(self._harvest_home) 318 # TODO: uncomment following line when live on system 319 #fileUtils.cleanDir(self._harvest_home) 317 320 318 321 print self.lineSeparator … … 323 326 print "ERROR: Procedure oai_ingest.py FAILED with status %s" %status 324 327 print self.lineSeparator 328 325 329 326 330 if __name__=="__main__":
Note: See TracChangeset
for help on using the changeset viewer.