Applies a maintenance plan to a database.
CALL DBCloud.ApplyMaintenancePlan ( plan=plan, database_list=database_list )
dbcloudcmd run ApplyMaintenancePlan plan database_list
The plan to apply. Accepts a search query that identifies one plan, for example a plan name or ID. (Required)
The target database(s). Accepts a search query that identifies databases. The search query can be a list of database names or database IDs separated with semicolons (;), or a full search. (Required)
This task applies a maintenance plan to a database or group of databases. Existing backups are unaffected; however, all future backups follow the schedules in the specified plan.
Run the following task to apply the maintenance plan called nightly to the database CustomerB:
dbcloudcmd run ApplyMaintenancePlan plan=nightly database_list=CustomerB
Run the following task to apply the maintenance plan called MyPlan to all running databases:
dbcloudcmd run ApplyMaintenancePlan MyPlan status:running