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

In a Linux File-Level Migration, How Do I Exclude Specific Directories from Migration and Synchronization?

Scenario

When you migrate a Linux server using the file-level migration method, you can exclude certain files or directories from a full migration. You can also include or exclude certain files or directories from the incremental 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 Target in the Migration Stage/Status column.
  4. On the Configure Basic Settings tab page, select Configure now next to Advanced Settings to expand advanced settings.
  5. At the bottom of the page, select Configure now next to Advanced Options.

  6. Configure Exclude Migration Paths, Exclude Sync Paths, and Include Sync Paths by referring to the following table. You can specify which directories and files to be excluded, for example, /root/data/path,/data/file.txt.

    Table 1 Parameter description

    Parameter

    Description

    Remarks

    Exclude Migration Paths

    Excludes directories or files you do not want to migrate from the full migration.

    • Absolute paths are required.
    • SMS does not check whether the configured paths can be found. You check that yourself.
    • 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 both Exclude Sync Paths and Include Sync Paths. Exclude Sync Paths overrides Include Sync Paths. If a path is configured for Exclude Sync Paths and Include Sync Paths, Exclude Sync Paths takes precedence, and the path will not be synchronized.

    Include Sync Paths

    Includes the directories and files you want to synchronize in incremental synchronizations. Other directories and files will be skipped during synchronizations.

    Exclude Sync Paths

    Excludes the directories and files you do not want to synchronize from incremental synchronizations. Data in the excluded paths will not be synchronized.

Modifying Advanced Options

You can only modify the advanced migration options if a task has the target server configured but is not started, is paused, or is waiting to execute an incremental synchronization. After locating the task, in the Operation column, choose More > Manage Migration Settings > Configure Advanced Options. Then you can modify the settings of Data Compression, Compression Threads, and Cache Node Size.

Product Consultation FAQs

more