Skip to main content
Use this tool to perform differential file copy to and from your development console.

Copy modes

Copy modes are mutually exclusive, only one can be specified for each copy operation. If no copy mode is specified the tool will check if the files were modified or not, only modified files will be considered for the copy operation.

Filter options

These options allows the user to specify which files and directories are going to be part of the copy through filters. The tool offers two types of filters:
  • On-shell command filters (/exd, /exf/ /ina, and /exa).
  • JSON file filters (/rules)

Logging options

xbCopy provides the following logging options:

JSON rule file format

This file is made up two arrays of JSON rule objects. You could specify one or both depending on your needs. One array contains the rules to specify which files or directories are going to be excluded from the copy operation while the other array contains the rules to specify which files or directories are going to be included. Things to consider:
  • A file or directory to be excluded or included must match at least one of the rules in each array respectively.
  • If a given directory is excluded all its subdirectories are excluded as well.
  • If no include rules are specified then all files and directories will be part of the copy, unless they match one of the exclude rules.
  • Exclude rules take precedence so if a file or directory matches both an include and an exclude rule, it will be excluded.
  • Within an array, rules are applied in order. That means that the ones that you define first on the array are the ones that are checked first.
Below you can see the general syntax format of the JSON rule file:

Rule Format

Rule objects are made up at least two attributes, a search pattern (wildcard or a regex), and ApplyTo. Path attribute is optional. Below you could find a description for each of the attributes.
Note: Wildcard and Regex attributes cannot be used simultaneously on the same rule, you could specify just one at a time per rule. Be careful while defining and positioning the rule, particularly if there is overlap between them.

JSON rule file examples

Example 1: A rule file format to exclude files and directories.

The file below will:
  • Excludes files with extension .xml and .exe
  • Excludes any directory whose name is equal to “assets”

Example 2: A rule file format to specify which files and directories must be copied.

This rule file format will only copy files with extensions .exe and .data

xbCopy examples

See also

Command-line tools File Copy XTF transport errors
Last modified on October 20, 2026