Hi,
There are some options that can move (oldest entered) data to another disk or prepare it for burning to a DVD. We use it to fill 2 pioneer 600 DVD jukeboxes.
Here is a short manual (use options with care, test on test server first).
In DICOM.INI:
JUKEBOXDevices = 1JUKEBOXDevice0 = C:\dicomserver\Jukebox0\dv0_%04d\CACHEDevices = 1CACHEDevice0 = C:\dicomserver\Cache%d\dv0_%04d\
These options create a device for up to 10000 DVDs and a device for temporary storing the data. Beware of the %d syntax. This is how it should be!
Then a simple way of moving data to another directory:
mkdir c:\dicomserver\jukebox0mkdir c:\dicomserver\cache0dgate --selectlruforarchival:4300000,MAG0dgate --movedatatodevice:JUKEBOX0.1,MAG0.Archiving
This batch file should be run in the dicomserver application directory. It first creates the jukebox and cache root directories. The first dgate instructs the running server to select 4.300.000 kb of data on device MAG0. This data is marked by renaming the device to MAG0.Archiving. The second command moves the data to the jukebox directory (which must be an ordinary writeable directory). The data winds up in subdirectory DV0_0001 - this corresponds to device JUKEBOX0.1.
It is a little more complex when you need to store the data on an intermediate place to burn it to DVD - here the CACHEDevice comes into play:
mkdir c:\dicomserver\jukebox0
mkdir c:\dicomserver\cache0
dgate --selectlruforarchival:4300000,MAG0
dgate --preparebunchforburning:JUKEBOX0.1,MAG0
xcopy /s/e c:\dicomserver\cache0\dv0_0001\*.* c:\dicomserver\jukebox0\dv0_0001
dgate --deletebunchafterburning:JUKEBOX0.1
Here the data is selected as before, then moved to the CACHE device. The xcopy command emulates burning a DVD. The final dgate compares the CACHE and JUKEBOX data and deletes the cache data if OK.
When writing this reply, I noted that there are errors in the dgate -? manual for some of the commands! Also dgate --restoremagflags: does not work, use dgate -au instead. These problems will be fixed in later releases.
What these options do NOT do:
create a DICOMDIR
allow any other way of selecting patients then on order of entering the database.
Regards,
Marcel