Hi!
Here on DSpace 1.4.1/ Windows 2003, we are working with the ItemExport
to automate the dspace collection export process. By running the
following script (windows batch file), a folder (e.g.
"Mon26-05-2008-12hr49mtsSCITheses") including today's date & time (in
hours-minutes) is created automatically. The script uses the existing
DSpace itemexport command and exports all the items in the collection
"SCITheses" (handler id "123456789/362") to the folder
"Mon26-05-2008-12hr49mtsSCITheses". The script (as a batch file) can be
automated in a windows environment using the Task scheduler.
I believe one drawback is that this script has to be set for each
collection. The advantage being once or twice in a day (if required),
this process can be scheduled and the exported folders identify (date &
Time) when the export was done for easy verification.
Any comments are welcome to further improve this script.
Regards, Jayan
To run, save this script as Test.bat in the C drive. Replace the correct
dspace path as specified in "cd c:\dspace\bin" (line no 6). Replace the
correct collection handler instead of "123456789/362" (line no 7).
Replace "SCITheses" (line no 4) with your abbreviated collection name
which is optional.
set DayDateMonthYear=%date:~0,3%%date:~7,2%-%date:~4,2%-%date:~10,4%
set TimeinHours=%time:~0,2%
set TimeinMinutes=%time:~3,2%
set
FolderNamewithDayTime=%DayDateMonthYear%-%TimeinHours%hr%TimeinMinutes%m
tsSCITheses
md c:\%FolderNamewithDayTime%
cd c:\dspace\bin
dsrun org.dspace.app.itemexport.ItemExport -t COLLECTION -i
123456789/362 -d c:\%FolderNamewithDayTime% -n 1
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech