The Redirect feature is a useful feature allowing a file originating in one directory structure to be repositioned into another directory location during dynamic dump restore. This support has been extended to FairCom DB autorecovery.
One or more of the following configuration entries are used to specify redirection rules in the server configuration file ctsrvr.cfg:
REDIRECT <old path> <new path>
REDIRECT redirects filename references in the transaction logs during automatic recovery to the specified new filename. This option is useful when c-tree data and index files are moved to a different location (on the same system or on another system) before running automatic recovery.
To specify an empty string for one of the !REDIRECT arguments use a pair of double quotes ("").
If a file originally existed with the name and path C:\Documents and Settings\Administrator\c-tree Data\customer.dat and now exists as the file D:\Documents and Settings\Guest\customer.dat, the following option will allow automatic recovery to proceed and find the file in its new location:
REDIRECT "C:\Documents and Settings\Administrator\c-tree Data" "D:\Documents and Settings\Guest"
Here's a similar example using Unix paths, where the original file is named /users/administrator/c-tree data/customer.dat and the file now exists as /users/guest/customer.dat:
REDIRECT "/users/administrator/c-tree data" "/users/guest"
Note: Use double quotes when a filename contains spaces.