For use with AMETHYST 1.4.
Amtrsmove is a console program that works in windows and linux.
To change the settings, you have to change the ini file.
This is an example of the ini file for windows
[DATES]
START=2004-01-01
STOP=2004-06-01
[PATHS]
BASEPATH=D:\Exclusive\
DATABASE=C:\Program Files\Datatex\Amethyst\Data\amt.fdb
[DESTINATION]
1=D:\exclusive\
2=E:\exclusive\
[AUTORUN]
ENABLED=1
DAYS_TO_KEEP_IN_LIVE_DATABASE=7
This is an example of the ini file for linux
[DATES]
START=2004-01-01
STOP=2004-12-31
[PATHS]
BASEPATH=/drive2/exclusive/
DATABASE=/opt/amethyst/data/amt.fdb
[DESTINATION]
1=/drive3/amtexcl2004/
[AUTORUN]
ENABLED=0
DAYS_TO_KEEP_IN_LIVE_DATABASE=5
Dates
These are the different cases that there can be with the dates (YYYY-MM-DD)
Only a start date will select all the records from that date on.
Only a stop date will select all the records up until that date.
If both dates are entered, the records between those dates will be selected.
If no dates are entered, all the records in the database will be selected.
Paths
Basepath
This the original location of the blob files on the hard drive before the move. If
this field is blank it will ignore the path and move all the files according to the dates
entered. If a path is entered, only the files that were in subdirectories of the base path
will be moved.
Database
This is the location of the database. The directory and name must be given.
Destination
These is the locations to where the files will be moved. They will be moved to
the first directory under daily subdirectories. If the first directory runs
out of space, the files will be written to the next directory.
Autorun
To use autorun, set up the amount of days worth of data to keep in the live database.
Run amtrsmove:
from the windows task scheduler for Windows
and the cronjob in Linux.
Enabled
Enabled is either 0 or 1. 0 disables the autorun facility, 1 enables it.
Days_to_keep_in_live_database
Days_to_keep_in_live_database is the amount of days that should be kept in the live database.