SyncBreeze Logo
Flexense Data Management Software

Using Command Line Tool

In addition to the GUI application, SyncBreeze Pro includes a command line tool allowing one to execute file synchronization commands from an OS shell window. The SyncBreeze command line tool provides power users and system administrators with the ability to integrate file synchronization capabilities into batch files and shell scripts. The SyncBreeze command line tool is located in <ProductDir>/bin directory.

Command Line Syntax:

syncbreeze -execute <Sync Command Name>

Executes the specified file synchronization command.

syncbreeze -sync -source <SourceDirectory> -dest <DestDirectory>

Synchronizes files between directories, local disks or network shares.

Parameters:

-source <Source Directory>

This parameter specifies the source directory for file synchronization. In order to ensure proper parsing of command line arguments, directories containing space characters should be double quoted.

-dest <Destination Directory>

This parameter specifies the destination directory for file synchronization. In order to ensure proper parsing of command line arguments, directories containing space characters should be double quoted.

Options:

-mode <SD | SUD | SAD | STW | STA>

SD - Sets the sync-destination file synchronization mode (Default)

All changes made in the source directory will be propagated to destination. Files deleted from the source directory will be deleted from destination. All files changed or deleted in destination will be restored from source.

SUD - Sets the update-destination file synchronization mode

Newly created and modified source files will be copied to destination. Files deleted from the source directory will be deleted from destination. Files deleted from the destination directory will be restored from source.

SAD - Sets the accumulate-destination file synchronization mode

Newly created and modified source files will be copied to destination. Files deleted from the destination directory will be restored from source. Newly created and modified destination files will be kept in place.

STW - Sets the two-way file synchronization mode

Newly created and modified files will be synchronized in both directions. Files deleted from the source directory will be deleted from destination. Files deleted from the destination directory will be restored from source.

STA - Sets the two-way accumulate file synchronization mode

Newly created and modified files will be updated in both directions. Files deleted in one location will be restored from the second location. After finishing the synchronization process both locations will be identical.

-perf <FULL | MEDIUM | LOW>

FULL - Full-speed file synchronization
MEDIUM - Medium-speed file synchronization
LOW - Low-speed file synchronization

-streams <1 ... 16>

Specifies the number of parallel file synchronization streams.

-DACL

Instructs to copy files' access control lists (DACL).

-SACL

Instructs to copy files' security control lists (SACL).

-OWNER

Instructs to copy files' user/group information.

syncbreeze -v

Shows the product major version, minor version, revision and build date.

syncbreeze -help

Shows the command line usage information.