Changeset 1121 for TI01-discovery
- Timestamp:
- 07/06/06 12:55:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py
r1076 r1121 148 148 # ingest the datacentres records into eXist db (backups of exist happen nightly). 149 149 commandline = "client.sh -c /db/dif/" + datacentre + " -u admin -P xxxxxx -p /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/" 150 print "Executing : " + commandline150 #print "Executing : " + commandline 151 151 status = os.system(commandline) 152 152 if status !=0: … … 160 160 if status !=0: 161 161 sys.exit("Failed at creating backup directory %s" %this_backupdir) 162 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/ | xargs -i cp /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/{\}" + this_backupdir 162 163 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/ | xargs -i cp /usr/local/WSClients/OAIBatch/data/" + datacentre +"/oai/difcopy/{\} " + this_backupdir 163 164 print "Executing : " + commandline 164 165 status = os.system(commandline) … … 172 173 if status !=0: 173 174 sys.exit("Failed at creating backup directory %s" %this_backupdir) 174 commandline = " cp " + "/usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/*" + this_backupdir175 commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i cp /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/{\} " + this_backupdir 175 176 print "Executing : " + commandline 176 177 status = os.system(commandline) … … 179 180 180 181 #Clear out the original harvest records area 181 commandline = " rm -f " + harvest_home +"/*"182 commandline = "ls -1 " + harvest_home + " | xargs -i rm -f {\}" 182 183 print "Executing : " + commandline 183 184 status = os.system(commandline)
Note: See TracChangeset
for help on using the changeset viewer.