Help Center> Server Migration Service> FAQs> Product Consultation> In a Linux File-Level Migration, How Do I Exclude Directories from Migration and Synchronization?
Updated on 2024-03-29 GMT+08:00

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

  1. Log in to the SMS console.
  2. In the navigation pane on the left, choose Servers.
  3. In the server list, locate the source server to be migrated, and click Configure in the Target column.
  4. On the Configure Basic Settings tab, select Advanced Options.

  5. 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.

Modifying Advanced Options

You can modify advanced migration options for tasks in which the target servers have been configured but the migration is not started, those have been paused, and those in which the full migration is complete and incremental synchronizations are to be performed. After locating such a task, choose More > Set Migration Limits in the Operation column to modify the settings of Data Compression, Compression Threads, and Cache Node Size.

Product Consultation FAQs

more