Use the RBSYNC command to synchronize the timestamps for database files.
Options
dbname
Specifies the name of the database to synch.
path
Specifies the location of the database files.
.RB1
Specifies a path for database file .RB1.
.RB2
Specifies a path for database file .RB2.
.RB3
Specifies a path for database file .RB3.
.RB4
Specifies a path for database file .RB4.
CREATE
Creates a skeleton .RB3 index file if it can't be found.
CHECK
Shows current synch status only. This is the default option unless you specify otherwise.
EXECUTE
Executes the command to synch the database.
About the RBSYNC Command
Use the RBSYNC command to synchronize the date and timestamps for the database files. The database files can become out of synch when R:BASE is not exited normally. You cannot open a database if the database files are out of sync.
With RBSYNC.EXE, a database owner can update the encoded timestamp values in the four database files (DBNAME.RB1, DBNAME.RB2, DBNAME.RB3, and DBNAME.RB4) to all have the same timestamp values. This might be necessary if R:BASE was aborted or if the computer or operating system crashes.
When a database is created or opened, a timestamp is encoded in each of the four files. Encoding the timestamp in each of the four database files enables the database files to be stored in separate directories apart from one another. To ensure that the correct database files are accessed, R:BASE evaluates the timestamp values of the files as it searches for them on the path statement. R:BASE must first try to connect to File 1 (DBNAME.RB1), and then it searches the path for the other database files (DBNAME.RB2, DBNAME.RB3, and DBNAME.RB4).
When you start RBSYNC, you can choose the location of File 1, enter the database owner's user identifier if one exists, then RBSYNC displays the location and timestamp for all four database files.
RBSYNC displays error messages if the database is already open or if any of the three files can't be located; however, if .RB1 and .RB2 are located but not .RB3, the user has the option to create a new (empty) .RB3 or abort. If creating a new .RB3, RBSYNC displays a warning message stating that a PACK operation should be performed.
RBSYNC requires the EXECUTE option to actually perform the synchronization.
Note: The path, dbname, and .RB* options below (after the first set) are rarely used except when the database files are in different locations.