Logo

Command Palette

Search for a command to run...

databases resync-replica

Re-syncs the specified replica database server with its master database server. From time-to-time your replica database may go out of sync with its master. This action attempts to re-sync your specified replica server. This can happen depending on many factors (such as DB size, frequency of change, networking between servers etc).

The server provided must have already been configured as a replication replica via the Cloud 66 UI. Providing the database type is optional and is only necessary for shared servers where we can’t automatically determine the target database type.

$ cx databases resync-replica --stack <application name> --dbtype <database type> <replica server name>

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesName of your application
<replica server name>yesName of replica server to be resynced with master
--dbtype <database type>noThe database type (mysql,postgresql)

Examples

$ cx databases resync-replica -s My_Awesome_App my_replica_server_name
$ cx databases resync-replicas -s My_Awesome_App --dbtype=postgresql my_replica_server_name