In a Linux File-Level Migration, How Do I Exclude Directories from Migration and Synchronization?
Scenario
When you migrate a Linux server using the file-level migration method, you can exclude the files or directories that are no longer needed from the migration. After the migration is complete, if you need to synchronize only some incremental data to the target server, you can exclude the files or directories that do not need to be synchronized from the synchronization.
Procedure
- Log in to the SMS console.
- In the navigation pane on the left, choose Servers.
- In the server list, locate the source server to be migrated, and click Configure in the Target column.
- On the Configure Basic Settings tab, select Advanced Options.
- Configure Exclude Migration Paths, Exclude Sync Paths, and Include Sync Paths by referring to the following table. You can configure both directory paths and file paths, for example, /root/data/path,/data/file.txt.
Table 1 Parameter description Parameter
Description
Remarks
Exclude Migration Paths
Excludes directory paths and file paths you do not want to migrate from the full migration.
- Absolute paths are required.
- SMS does not check whether the configured paths exist. Make sure you have specified existing, correct paths.
- Use commas (,) to separate multiple paths.
- The Exclude Migration Paths settings will become invalid in incremental synchronizations. If you do not want to synchronize these directories or files, add the absolute paths to Exclude Sync Paths.
- You can configure Exclude Sync Paths and Include Sync Paths at the same time. Exclude Sync Paths overrides Include Sync Paths. If the same paths are configured for Exclude Sync Paths and Include Sync Paths, Exclude Sync Paths takes precedence, and the configured paths will not be synchronized.
Include Sync Paths
Includes absolute paths of the directories and files you want to synchronize in incremental synchronizations. Other paths will be skipped during synchronizations.
Exclude Sync Paths
Excludes absolute paths of the directories and files not to be synchronized from incremental synchronizations. Data in the excluded paths will not be synchronized.
Related Operations
After you configure the target server or start the migration task, if you want to change the settings of Exclude Migration Paths and Exclude Sync Paths, pause the migration task, and choose More > Advanced Options in the Operation column.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot