Configuring Automatic Data Replication in WCN

Prev Next

Automatic Data Replication is a user-defined policy that enables WCN to replicate files from the source to the bucket. When configuring the policy, you will set a time interval to determine the duration that a file must remain unmodified before WCN replicates the file. 

The time interval in the automatic data replication policy governs when file changes (such as when a file is deleted or renamed) are synchronized to the bucket. If you delete or rename a file on the source, the copy on the bucket is deleted or renamed only after the replication policy time interval lapses.

A default global replication policy (governing all source-target pairs) is configured in WCN. While this policy cannot be deleted, you can modify the settings and/or overwrite the policy. You can overwrite the global policy by configuring a replication policy for a specific source-target pair that will take precedence over the global policy.

By default, WCN manages all data on the source location(s). When you configure a replication policy, you can refine the list of automatically managed locations on all sources by specifying locations to include and/or exclude from the policy. At any time, you can edit the list of included/excluded locations. By refining the list of automatically managed locations, you can enable WCN to:

  • Replicate all data on a source when the root of the source is added as an included location.

  • Replicate all data on a source, except for data in subfolders added as excluded locations, when the root of the source is added as an included location.

  • Replicate no data on the source, except data in subfolders added as included locations, when the root of the volume is not added as an included location.

Although data in excluded locations is not subject to WCN automatic data management policies, the WCN shell extension enables you to manually perform data management operations on files/folders in an excluded location(s). For more information, review Managing Data With Wasabi Cloud NAS.

You can manually replicate a file or folder from the source to the bucket using the WCN shell extension. A manual operation takes precedence over any automatically scheduled tasks or policies. While data replication is indispensable for all other data management mechanisms, it can also be used standalone for addressing scenarios such as data backup and disaster recovery.

Configuring a Global Automatic Data Replication Policy

When configuring a global policy, all automatic data operations are paused. WCN does not manage any data until you resume the operations.

  1. Click Replication Policy.

  2. By default, the global replication policy is queues data for replication that is not modified within the last one minute. To modify this, enter a number into the type field.

  3. Click the drop-down to select a unit.

  4. You have the option to refine the list of automatically managed locations on all sources by defining a list of locations (folders) on the source to either include or exclude from the policy. To add a location to the list of folders that will be replicated, click +.

  5. Browse to the location and select the folder. (The folder must be within an existing mapped source in WCN.)

    You can create a new folder on an existing source to list as an included/excluded location.

  6. Click Select Folder.

  7. Optionally, to remove a folder from the list, select the folder.

  8. Click to remove the location.

  9. To exclude data, click +

  10. Browse to the location and select the folder. 

  11. Optionally, to remove a folder from the list, select the folder and click .

  12. Optionally, define specific file types to exclude from the replication policy. Enter one or more extensions, separated by either a comma or semicolon.

    By default, certain folder/file types are excluded from replication. For more details, see Folder and File Types Excluded From Replication.

    When listing each extension type, do not include the leading asterisk (*) or dot (.).

  13. Click Apply.

  14. A message will notify you that the changes were applied. Click OK.

Overwriting the Global Policy

Configure a replication policy for a specific source-target pair to overwrite the global replication policy.

  1. Select the source on the left pane.

  2. Click Add policy.

  3. In the Policy Type dialog, select Replicate.

  4. Click OK.

    If a replication policy is already assigned to the selected source, you can edit the existing policy but cannot add another replication policy.

  5. Enter a number into the type field to specify the duration that a file must remain unmodified. 

  6. Click the drop-down to select a unit.

  7. Optionally, enter one or more extensions (separated by either a comma or semicolon) to exclude from the policy.

    When listing each extension type, do not include the leading asterisk (*) or dot (.).

  8. Click Apply.

  9. A message will notify you that the changes were applied. Click OK.

    To make the source use the global replication policy set for all pairs, select the source and click Delete policy.

Folder and File Types Excluded From Replication

By default, the following folder and file formats are automatically excluded from an automatic data replication policy. 

  • RECYCLER

  • System Volume Information

  • Recycled

  • $RECYCLE.BIN

  • SANConfig.san

  • .san_config.cfg

  • .DS_Store

  • .Spotlight-V100

  • .TemporaryItems

  • .Trashes

  • .VolumeIcon.icns

  • .com.apple.timemachine.supported

  • .com.apple.timemachine.donotpresent

  • .fseventsd

  • .metadata_never_index

  • .san_alive.dmn

  • .tt_rt_guid

  • Thumbs.db

  • TIER_SYNC_PRIVATE_DIR_NAME

  • .tt_rt

  • DfsrPrivate

  • File not replicated and containing an offline attribute.

  • Files within the folder(s) that are explicitly excluded from the global replication policy.

  • Files with an associated OFFLINE flag and are not Wasabi files.

  • Encrypted files and folders. (Use Properties > General > Advanced… > Encrypt contents to secure data.)

Excluding File Types From Replication Using Command Prompt

WCN enables you to further exclude specific file types (such as VIB, VLM, and so on) from policy-based replication. To exclude additional file types using Command Prompt, follow the steps below.

Excluding files only applies to policy-based replication and does not apply to manual operations.

  1. Open Regedit.

  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wasabi\tiger-bridge\tiersvc\settings.

  3. Create a string value variable with the name “replication_filter:”, and data as “!:vib:vlm:”. In this example, the files with the extension VIB and VLM will be excluded. Any other file types can be excluded by providing their extension.

  4. Once this registry string value pair has been created, restart the service. Open the Command Prompt as an Administrator.

  5. Run the following commands.  c:\net stop tiersvc and c:\net start tiersvc .