Moves a database copy from one cloud server to another.
CALL DBCloud.MoveDatabaseCopy ( databasecopy=databasecopy, server=server )
dbcloudcmd run MoveDatabaseCopy databasecopy server
The database copy to move. Accepts a database copy name, ID, or a search that returns a database copy. (Required)
The cloud server to move the database copy to. Accepts a search query that identifies one cloud server, for example a cloud server name or ID. (Required)
You must have a cloud server that is not currently running a copy (scale-out, primary, or mirror) of the tenant database. This cloud server must be of the same version as the cloud server that the database copy is currently running on.
You cannot run the MoveDatabaseCopy task on the read-write database of a read-only scale-out system.
If the database copy is not running, MoveDatabaseCopy moves the files to the specified cloud server.
You can use this task to move a mirror or primary database, as long as the arbiter and primary database are running.
Connections to the database may be temporarily disabled.
Use the following format to specify the database copy:
Run the following task to move the scale-out database copy of the database mydatabase running on the cloud server my-server#2 to the cloud server my-server#3:
dbcloudcmd run MoveDatabaseCopy databasecopy=mydatabase@my-server#2 server=my-server#3