autorename

--autorename

The parameter is used with the recover mssql_database command. The parameter enables the renaming of databases that have the same names as those in the destination instance. A recovered database will have the following name: <original database name>-Recovered. If a database with this name already exists, the recovered database will be named as follows: <original database name>-Recovered (<sequence number>).

Examples: MyDatabase-Recovered, MyDatabase-Recovered (2).

If the --autorename parameter is not specified, the command execution result depends on the --overwrite parameter. If the --overwrite parameter is present, the command will overwrite the existing database. Otherwise, the database will be skipped during the recovery.

If you specify both the --autorename and the --overwrite parameters, an error will occur.