If you need to back up a large amount of data from an Object Storage Service (OSS) bucket, you can use the OSS inventory feature of Cloud Backup to accelerate incremental backup. This topic describes how to create and run OSS backup plans by using the OSS inventory feature.
Prerequisites
An OSS bucket whose storage class is Standard is created. For more information, see Create buckets.
If you want to use an existing OSS inventory list to create an OSS backup plan, the OSS inventory list must meet the following requirements:
The inventory list of the latest version is enabled. The bucket prefix that is used in the inventory list is the same as the value of the Source Path parameter that is specified in the Create Backup Plan panel.
The inventory list must include the Object Size, Storage Class, Last Modified Date, and ETag fields.
For more information, see Configure bucket inventory.
Background information
You can use the inventory feature to export the information about specific objects in a bucket, such as the number, sizes, storage classes, and encryption status of objects. If you need to back up a large amount of data from an OSS bucket, you can use the OSS inventory feature of Cloud Backup to accelerate incremental backup. If you need to back up more than 100 million objects, we recommend that you use the OSS inventory feature. OSS determines the time at which OSS inventory lists are generated. If you perform a backup before an inventory list is generated, the backup fails.
Precautions
When you use the OSS inventory feature of Cloud Backup to back up OSS data, take note of the following items:
Cloud Backup cannot back up or restore symbolic links, object access control lists (ACLs), or objects in Archive buckets.
You are charged for OSS API operations that are called by Cloud Backup during the backup of OSS objects. The charges are included into your OSS bills. For more information, see Billing overview.
If you delete an existing backup, the data integrity of subsequent backups is not affected.
You can manage OSS inventory lists in the OSS console. For more information about how to create an OSS inventory list, see Configure bucket inventory.
To accelerate incremental backup, Cloud Backup uses the latest inventory list in the last seven days.
The system may require a short period of time to generate an OSS inventory list. When you use the OSS inventory list, take note of the following limits:
If no inventory list is detected by a running backup job, the backup job fails.
If a backup job detects that the OSS inventory list remains the same as the OSS inventory list for the previous backup, the backup job fails.
If a backup job is triggered, Cloud Backup uses only the latest OSS inventory list to back up data. After a backup job is completed, the objects that you add to the OSS inventory list are backed up in the next backup cycle.
The interval at which backup jobs are performed must be greater than or equal to the interval at which OSS inventory lists are generated. This way, you can use an OSS inventory list each time you run a backup job.
Therefore, we recommend that you set the time to start the first backup to a point after an OSS inventory list is generated or click Run Now to manually perform a backup after an OSS inventory list is generated. This way, you can enable the inventory list feature in time to accelerate your backup jobs.
Procedure
To create a backup plan for an OSS bucket, perform the following steps:
Log on to the Cloud Backup console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region where the OSS bucket resides.
On the Backup Plans tab, click Backup Bucket.
In the Create Backup Plan panel, configure the parameters and click OK.
NoteYou can use each backup plan free of charge for one month, which starts from the day when the backup plan is created. For example, if you create a backup plan on February 14, 2020, you can use the backup plan free of charge until March 14, 2020. You are charged for OSS API operations that are called by Cloud Backup during the backup of OSS objects. You are also charged for the storage of OSS inventory lists. The charges are included into your OSS bills. For more information, see Billing of OSS.
This topic describes how to configure a backup plan in paid mode. You can follow a similar procedure to configure a backup plan in free mode.
Click Switch to Paid Plan.
Configure the basic parameters described in the following table.
ImportantIf the selected region supports backup policies, you can set a backup plan only by associating it with the backup policy. Cloud Backup periodically backs up OSS objects based on the backup policy.
To view the regions that support backup policies, click Policy Center in the left-side navigation pane of the console. For more information about how to create a backup policy, see Create a backup policy.
Parameter
Description
Source OSS Bucket
The name of the OSS bucket that you want to back up. Select an OSS bucket from the drop-down list.
Pay After Trial Ends
Specifies whether to pay for the backup plan after the free trial ends. Valid values:
No (default): The backup plan is not renewed after the free trial for the backup plan ends. If you select this option, the backup plan is deleted after the free trial ends.
Yes: The backup plan is automatically renewed after the free trial ends.
Backup Vault
Backup Vault
The backup vault to which you want to store the backup data. Valid values:
Create Vault: If you select this option, specify a name for the backup vault in the Vault Name field. If you do not configure this parameter, a random name is specified.
Select Vault: If you select this option, select a backup vault from the Vault Name drop-down list.
To maximize the redundancy of your backup data, Cloud Backup uses ZRS-enabled backup vaults by default in regions that support ZRS-enabled backup vaults. If only LRS-enabled backup vaults are available in the region where the backup vaults are located, Cloud Backup uses LRS-enabled backup vaults. You do not need to manually select a backup vault type.
Vault Name
The name of the backup vault.
Vault Resource Group
This parameter is required only if you set the Backup Vault parameter to Create Vault. This parameter specifies the resource group to which the backup vault belongs.
You can use resource groups to manage resources owned by your Alibaba Cloud account. Resource groups help you simplify the resource and permission management of your Alibaba Cloud account. For more information, see Create a resource group.
Backup Vault Encryption Method
This parameter is required only if you set the Backup Vault parameter to Create Vault. This parameter specifies the method that is used to encrypt the data in the backup vault.
Cloud Backup-managed (default): You can use the default encryption method of Cloud Backup.
KMS: You can use Key Management Service (KMS) to encrypt the data that is stored in the backup vault. If you select this option, you must specify the KMS KeyId parameter.
ImportantIf you enable KMS-based encryption, you cannot modify a KMS key.
Before you can use the KMS key to encrypt the data in the backup vault, you must create a key ID in the KMS console. For more information, see Create a CMK.
Basic Settings
Plan Name
The name of the backup plan. If you do not configure this parameter, a random name is specified.
Source Path
The prefix in the names of the objects that you want to back up from the OSS bucket. By default, no prefix is specified and all objects in the root directory of the OSS bucket are backed up.
Time Settings
Start Time
The time at which the backup plan starts. The time is accurate to seconds.
Backup Interval
The interval at which incremental backup is performed. Default value: 1 day. Unit: days or weeks.
Retention Policy
The retention policy of the backup data. Valid values:
Limited (default): The backup data is retained for a specified period of time. If you select Limited, you must set the Retention Period parameter.
Permanent: The backup data is permanently retained.
ImportantAfter you create a backup vault and store backup data, you are charged for the usage of the backup vault. For more information, see Billing methods and billable items.
Retention Period
This parameter is required only if you set the Retention Policy parameter to Limited. This parameter specifies the period of time for which the backup data is retained. Default value: 2 years. Unit: days, weeks, months, or years.
Keep At Least One Backup Version
We recommend that you turn on the switch. If you turn on the switch, the latest backup version generated by the backup plan is not deleted due to the expiration of the retention period or accidental operations. This prevents the risk that no backup version is available for restoration due to reasons such as improper backup plan settings. For more information, see Keep at least one backup version.
Performance Optimization
Use OSS Inventory
Specifies whether to enable the OSS inventory feature to back up OSS objects. Set this parameter to Select Inventory.
No: disables the OSS inventory feature. You must back up objects in traversal mode.
Select Inventory: You can use an existing OSS inventory list to accelerate incremental backup of OSS objects.
OSS Inventory Name
This parameter is required only if you set the Use OSS Inventory parameter to Select Inventory. You can select a created OSS inventory list from the OSS Inventory Name drop-down list. For more information about how to create an OSS inventory list, see Configure bucket inventory.
The OSS inventory list that you create must meet the following requirements:
The inventory list of the latest version is enabled. The bucket prefix that is used in the inventory list is the same as the value of the Source Path parameter that is specified in the Create Backup Plan panel.
The inventory list must include the Object Size, Storage Class, Last Modified Date, and ETag fields.
The interval at which OSS inventory lists are generated must be less than or equal to the interval at which backup jobs are performed. This way, you can use an OSS inventory list each time you run a backup job.
Delete inventory file after backup
Specifies whether to delete the inventory list when the backup plan is completed. If you set this parameter, you may delete the inventory lists of the bucket. We recommend that you store the inventory lists in a dedicated bucket or set the parameter to Do Not Delete to manually manage the lists.
Do Not Delete: retains the inventory lists. If other applications access the OSS inventory lists, we recommend that you set the parameter to this value.
Delete Current: deletes the inventory list that is used in the backup job.
Delete All: deletes all the inventory lists that are generated before the backup after the backup is completed. If no other applications access the OSS inventory lists, we recommend that you set the parameter to this value.
After the backup plan is created, Cloud Backup backs up OSS objects from the specified start time at the specified interval.
Related operations
The following table describes the operations that you can perform in the Actions column on the Backup Plans tab.
Operation | Description |
Execute Immediately | Immediately runs a backup job. |
Edit | Modifies the parameters of an OSS backup job that does not meet your business requirements. |
Backup History | Views all the backup records of the file system or the backup records in the recent three months. |
Suspend Plan | Suspends a running backup job. |
Resume Plan | Resumes a suspended backup job. |
Delete Plan | Deletes a running backup job. After you delete the backup plan, Cloud Backup no longer runs backup jobs for the backup plan but the backup data is retained. |
Alert Settings | If the backup job fails or the client is disconnected from the server, Cloud Backup sends an alert notification by default. For more information, see Configure alert notifications. |