Use ttMigrate with Restrict Mode

When you invoke ttMigrate (or ttMigrateCS) with the -restrict option, the command-line option listed in the table below prevents you from overwriting existing files.

The table shows the error message when ttMigrate fails. If the file does not exist, ttMigrate creates it.

Command-line Option Reason to Block Error Message
-c <datafile> Overwrites an existing data file. not overwriting the existing file dataFile in restrict mode
This example shows how the -restrict option prevents ttMigrate from overwriting an existing file.
$ ttMigrate -c -restrict sampledb sales.ttm
ttMigrate: not overwriting the existing file sales.ttm in restrict mode.