If you are archiving data for the first time, you must add a data source. You can use local NAS, HDFS, or S3-compatible storage as a data source. This topic describes how to add an archive data source using Cloud Backup.
Prerequisites
You have granted the required permissions and installed the client. For more information, see Install the client.
Procedure
Log on to the Cloud Backup console.
In the navigation pane on the left, click Archive.
In the top navigation bar, select a region.
On the Analyze and Archive tab, click Create Data Source.
In the Create Data Source panel, configure the following parameters and click Next.
Set Source Type to Local NAS .
Configure the following important parameters:
Parameter | Description |
Source Type | The type of data source. Select Local NAS. |
Data Source Name | The name of the data source to add. |
NAS Type | The type of NAS. Select Other NAS. |
NAS Network Address | The network address of the NAS to archive. |
NAS Share Path | The shared directory on the NAS. Only uppercase and lowercase letters, digits, and the special characters ,-_=/.:\ are supported. If NAS Type is set to Other NAS, specify the path relative to the / root directory. For example, /myshare means that the /myshare path is shared for archiving. |
Protocol Type | The supported NAS protocol types.
Important If you mount Alibaba Cloud NAS, set the vers parameter in Advanced Settings. |
(Optional) Click Advanced Settings, and then click + Configure Mount Parameters .
The following table describes the mount parameters.
Parameter | Description |
vers | The file system version. vers=3: Mount the file system using the NFS v3 protocol. vers=4: Mount the file system using the NFS v4 protocol. vers=4.0: Mount the file system using the NFS v4.0 protocol.
|
nolock | Whether to enable file locking. |
proto | The file system mount protocol. |
rsize | The size of data blocks used to read data between the client and the file system. Recommended value: 1048576 bytes |
wsize | The size of data blocks used to write data between the client and the file system. Recommended value: 1048576 bytes |
hard | If the File Storage NAS becomes temporarily unavailable, applications that access files on the file system stop and wait until the file system comes back online. We recommend that you enable this parameter. |
timeo | The timeout period, in units of 0.1 seconds. This is the time that the NFS client waits for a response before retrying a request to the file system. Recommended value: 600 (60 seconds) |
retrans | The number of times that the NFS client retries a request. Recommended value: 2 |
noresvport | Use a new TCP port when reconnecting to prevent connection interruptions after network failures. We recommend that you enable this parameter. |
Set Source Type to HDFS .
Configure the parameters described in the following table.
Parameter | Description |
Source Type | The type of data source. Select HDFS. |
Data Source Name | The name of the HDFS data source. Define a suitable name based on your needs. For example, back-end-hdfs. |
NameNode Network Address | The network address of the HDFS primary server. The NameNode acts as the primary server and manages the namespace of the HDFS file system and client access to files. |
NameNode Port | The port number of the HDFS primary server. |
Secondary NameNode Network Address | The network address of the HDFS secondary node. The secondary node helps manage the primary server. |
Secondary NameNode Port | The port number of the HDFS secondary node. |
HDFS Username | The username for HDFS.
Note Make sure the HDFS user has sufficient permissions. We recommend that you use hadoop or hdfs. Otherwise, archiving may fail due to insufficient read permissions, or file restoration may fail due to insufficient write permissions or inability to restore group information. |
Set Source Type to S3.
The important parameters are described as follows:
Parameter | Description |
Source Type | The type of data source. Select S3. |
Data Source Name | The name of the S3 data source. Define a suitable name based on your needs. For example, awss3. |
Use HTTPS | Data transferred over HTTPS is encrypted. |
S3 Bucket | The name of the S3 bucket. |
S3 Endpoint | An S3 endpoint is a named network endpoint that connects to a bucket for performing S3 object operations. Examples: s3.us-east-1.amazonaws.com, 11.238.XXX.XXX:9000. |
Access Key | The key ID used to access S3. |
Secret Key | The secret key used to access S3. |
Associate the data source with a client group and then click Next .
A client group contains multiple clients and lets you run a concurrent archive task. You can select an existing client group. To create a new client group, set Client Group Source to Create Backup Client Group, enter a Client Group Name, and select the clients that you want to add to the group.
Configure a schedule for data analysis and then click OK .
On the Configure Analysis Plan tab, configure the following parameters.
Parameter | Description |
Enable Data Source Analysis | Whether to enable data analysis. Turn on Enable Data Source Analysis. Then Cloud Backup starts data analysis after adding the data source. You must enable data analysis to scan, analyze, and search the data source.
Note You can archive data directly without enabling data analysis. |
Meta Index Start Time | The start time for metadata indexing. |
Meta Index Interval | The interval at which metadata indexing runs. Units: days or weeks. |
After you add the data source, it appears in the data source list on the Analyze and Archive tab.
Related operations
For an added data source, you can click More next to the data source to perform the following operations.
Operation | Description |
Configure Analysis Plan | You can modify the data analysis plan. |
Run Meta Indexing | Create a metadata index for the data source immediately to support later analysis and search. |
View Data Source | View details about the data source, including its type, network address, shared directory, and associated client group. |
Edit Data Source | Modify the configuration parameters of the data source. |
Unregister Data Source | Unregister the data source. Perform this operation only if you no longer need to archive data from this source. |
Edit Backup Client Group | Modify the client group name or clients. |