An incremental data backup job backs up all macroblocks modified since the last full backup.
Prerequisites
Make sure that full data backup has been performed. If not, initiate a full data backup job first. For more information, see Initiate a full data backup job.
Initiate an incremental data backup job
After you complete the preparations, you can perform the following steps to initiate an incremental data backup job.
Assume that the current cluster contains three tenants: sys, mysql_tenant, and oracle_tenant.
Initiate an incremental data backup job from the sys tenant
You can initiate an incremental data backup job for all tenants or a specified tenant in the cluster from the sys tenant.
Log on to the
systenant of a cluster as therootuser.Execute the following statement to initiate an incremental data backup job:
Initiate an incremental data backup job for all tenants in the cluster
Execute the following statement to initiate an incremental data backup job for all tenants in the cluster.
obclient [(none)]> ALTER SYSTEM BACKUP INCREMENTAL DATABASE;After the statement is executed, the system initiates an incremental data backup job for the
mysql_tenantandoracle_tenanttenants in the cluster.Initiate an incremental data backup job for a specified tenant in the cluster
You can initiate an incremental data backup job for a specified tenant without affecting other tenants in the cluster.
To initiate an incremental data backup job for the
mysql_tenanttenant, execute the following statement:obclient [(none)]> ALTER SYSTEM BACKUP INCREMENTAL TENANT = mysql_tenant;Note:
If you specify multiple tenants, separate the tenant names with commas (
,).After the statement is executed, the system initiates an incremental data backup job for the
mysql_tenanttenant.
You can view the backup progress in real time. For more information, see View the data backup progress.
Initiate an incremental data backup job for a user tenant
You can initiate an incremental data backup job for a user tenant without affecting other tenants.
Log on to the database as a tenant administrator.
In this example, you can log on to the
mysql_tenanttenant as therootuser, or to theoracle_tenanttenant as theSYSuser.Execute the following statement to initiate an incremental data backup job:
obclient [(none)]> ALTER SYSTEM BACKUP INCREMENTAL DATABASE;After the statement is executed, the system initiates an incremental data backup job for the current tenant.
You can view the backup progress in real time. For more information, see View the data backup progress.