Back up CPFS
Create a backup plan to back up your CPFS file system on a schedule, track backup jobs, and verify backup success.
If this is your first time backing up CPFS data, click Add CPFS Backup on the CPFS Backup page. The Create Backup Plan panel that opens allows you to select a data source and configure backup settings in one place.
Prerequisites
Before you begin, make sure that the following requirements are met:
Required
A backup client is installed on the machine that runs the backup job.
You have added a CPFS data source in the Cloud Backup
Optional (choose based on your network environment)
You have activated the Alibaba Cloud Cloud Backup
Your CPFS file system can access Alibaba Cloud over the public network. If no public network is available, connect CPFS to an Alibaba Cloud VPC through a leased line or VPN, and configure routing (on-premises to cloud: 100.64.0.0/10 or 100.64.0.0/11, 100.96.0.0/11). For more information, see Connect a VPC to an on-premises data center (single-tunnel mode).
Back up CPFS files
Create a backup plan
The first backup job that runs after you create a backup plan is a full backup. Subsequent backup jobs are incremental backups by default.
On the CPFS Backup page, click the Protected CPFS Sources tab, and then click Add CPFS Backup.
NoteIf you are using the old console (the Try New Version
In the Create Backup Plan
Parameter
Description
CPFS Data Source
Select the CPFS data source to back up.
NoteIf you open the panel by clicking Back Up in the old console, the data source is preselected and this parameter is not displayed.
Source Paths
Enter the directory to back up. You can specify only one directory, and wildcards are not supported. The path must be relative to the shared directory of the CPFS file system. A forward slash (
/) indicates the entire directory.Include Files
Optional. Specify the files that you want to back up. If you leave this parameter blank, all files in the source paths are backed up. Enter one path per line.
The path matching rules are as follows:
If a path starts with a forward slash (/), the filter matches the full path under the backup path.
If a path does not start with a forward slash (/), the filter matches relative paths under the backup path. Any subpath that matches the rule is affected.
Exclude Files
Optional. Specify the files that you want to exclude from the backup, such as logs and caches. Enter one path per line. The path matching rules are the same as those of Include Files.
WarningIf an exclusion rule conflicts with an inclusion rule, the files are not backed up.
Backup Policy
Select a backup policy from the drop-down list.
Cloud Backup
If the default backup policy does not meet your requirements, click Create Backup Policy
After a backup plan is created, its Plan Status
Backup running status
If the original CPFS data source cannot be found, for example, because it was released, expired backup data is deleted automatically.
Backup running status | Description |
Running | The backup plan is active. Backups run as scheduled based on the backup policy. If a backup job is in progress, you can view it on the Backup Jobs tab. |
Paused | The backup plan is suspended and no new backup jobs run. To resume backups, turn on the switch in the Plan Status column on the Backup Plans tab. |
Failed | The most recent backup job failed. The data source list shows Failed in the Last Backup Time column. Check the error details on the Backup Jobs tab. |
Verify backup success
After a backup job is complete, verify its success in the following ways:
On the Backup Jobs tab of the backup details page, check whether the job status is Succeeded.
In the Backup History
(Optional) Use the Browse
View backup jobs
At the scheduled backup time, Cloud Backup starts the backup job.
Manage backup content
On the CPFS Backup - Protected CPFS Sources page, select the region where your target CPFS data source resides, click View Details
If you are using the old console (the Try New Version
Browse backup files
Use the Browse
In the Backup History
Alternatively, click the
icon on the right side of the backup history to switch the display mode, click the target backup point, and then select BrowseIn the Browse
You cannot directly download backed-up files. As a workaround, you can restore them to a specified path. For example, when you create a restore job, set Restore Path Type
Extend backup point retention
You can extend the retention period of a backup point to retain its data longer.
You can only extend a backup point's retention period, not shorten it.
You cannot extend the retention period of a backup point that is set to be retained permanently.
In the Backup History
Alternatively, click the
icon on the right side of the backup history to switch the display mode, click the target backup point, and then click the
icon to the right of Expires AtSet a Schedule Time
After the settings are saved, the new expiration time is displayed in the Expires At
Delete backup data
Delete backup points generated by a backup client.
Deleted backup points cannot be recovered. Proceed with caution.
To delete the last backup point, you must first disable the "Retain at least one backup version" setting in the backup plan if it is enabled.
When you delete a backup plan, the associated CPFS data source is removed from the backup list after its last remaining backup point expires or is manually deleted.
In the list view of the Backup History
Delete a single backup point: Click Delete
Delete multiple backup points: Select the target backup points, click Delete Backup Point
Alternatively, click the
icon on the right side of the backup history to switch the display mode, click the target backup point, and then select Delete
Manage backup plans
On the CPFS Backup page, select the region where your target CPFS data source resides. Click the Protected CPFS Sources tab, click View Details
If you are using the old console (the Try New Version
Run a backup immediately
In the Actions
Edit a backup plan
Click Edit in the Actions
In the Configure Plan
Click OK
Pause or resume a backup plan
By default, a backup plan is in the Running state. You can pause a plan to temporarily stop backups and resume it later.
Pause a backup plan: Turn off the switch in the Plan Status
Pausing a backup plan prevents new backup jobs from running. Existing backup points are not affected and expire based on the specified retention period. (If the "Retain at least one backup version" setting is enabled, the last backup version is not affected by the retention period.) Billing for the CPFS data source continues as long as backup points exist.
Resume a backup plan: After a backup plan is paused, turn on the switch in the Plan Status
Delete a backup plan
If you no longer need to periodically back up a resource, you can delete its backup plan.
Deleted backup plans cannot be recovered. Proceed with caution.
In the Actions
Manage backup clients
On the CPFS Backup - Protected CPFS Sources page, select the region where your target CPFS data source resides, click View Details
If you are using the old console (the Try New Version
You cannot directly uninstall an on-premises client from the console. To uninstall it, see How do I uninstall a Cloud Backup client?. After the uninstallation is complete, the client status changes to Stopped
Reinstall a backup client
To the right of Client Operation
Client settings
To the right of Client Operation
Client settings | Description |
Use HTTPS to Transfer Data | Turn on this setting to use HTTPS for data transfer. HTTPS encryption and decryption can reduce transfer performance. If you change this setting, the change takes effect when the next backup or restore job starts. Note This setting affects only data security during network transmission. Regardless of whether HTTPS is enabled, backup data is encrypted at rest in the backup vault. |
Data Network | Select VPC or public network for data transfer. Select VPC if the client is in an Alibaba Cloud VPC or if your on-premises environment connects to a VPC through a leased line. |
Edit a backup client group
Only CPFS and on-premises NAS data sources support client groups. On-premises file backup supports only a single client.
You can edit a backup client group to add or remove clients.
On the backup details page, find and click the Edit Backup Client Group button next to Clients.
In the dialog box that appears, select the checkboxes of the clients to be added to the client group, or clear the checkboxes of the clients to be removed.
Click OK to save the settings.
Enterprise-grade features
Backup vault replication
To prevent regional disasters or account management risks from affecting business continuity, Cloud Backup supports configuring Cross-region backup or Cross-account backup vault replication for backup vaults where the Storage Vault Type is General Backup. Once configured, data from the source backup vault is automatically synchronized to the destination backup vault, ensuring data consistency between the two locations. You can also perform cross-region data recovery from the destination backup vault as needed.
General-purpose backup vaults that store CPFS data support backup vault replication for cross-region or cross-account disaster recovery.
In addition, CPFS backup supports enterprise-grade features such as cross-account backup, automatic archiving, KMS encryption, and immutable backup.
Troubleshooting
If the Status
Follow the on-screen instructions to correct the configuration.
Backup job Status
Check whether the backup directory mounted on the CPFS file system is configured correctly.
The backup client group has no backup clients, or required tools are not installed. Reconfigure the backup client. For more information, see Install a backup client.
NoteThe following paths are the default installation paths. Use the actual installation path on your machine.
Windows log path: Local Disk (C) > Program Files > Aliyun Hybrid Backup Service Client > logs
Linux log path: /opt/alibabacloud/hbrclient/logs
Backup plan Status
This status indicates that the backup plan is paused. Cloud Backup
For additional help, see Online Technical Support. When creating a ticket, please provide the backup plan ID, region, data source type, and job ID, and a description of the issue, including the steps you took and the expected outcome.