FlexTk

Command Line Tools:        

The FlexTk file management toolkit provides advanced file synchronization capabilities allowing one to synchronize files between directories, local disks and network shares. The FlexTk's built-in file synchronization engine offers numerous one-way and two-way file synchronization modes, rule-based file matching capabilities and advanced performance tuning options. Frequently used file synchronization operations may be pre-configured as user-defined commands and executed in a single mouse click. Moreover, FlexTk allows one to create desktop shortcuts for user-defined file synchronization commands and execute them directly from the Windows desktop without the need to start the main FlexTk GUI application.

In addition to the GUI application, FlexTk Ultimate provides a command line utility allowing one to use all the features of the FlexTk file management toolkit from an OS shell window. The FlexTk command line tool provides power users and system administrators with the ability to automate all the available file management operations and to integrate FlexTk features into batch files and shell scripts. The FlexTk command line tool is located in <ProductDir>/bin directory.

Command Line Syntax:

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

Synchronizes files between directories, local disks or network shares.

In addition, FlexTk allows one to execute user-defined file synchronization commands using the FlexTk Execute command line tool, which supports all advanced capabilities available in the FlexTk GUI application.

Parameters:

-source <Source Directory>

This parameter specifies the source directory for file synchronization. In order to ensure proper parsing of command line arguments, directories and file names 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 and file names containing space characters should be double quoted.

Options:

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

-sync_dirs_time

Instructs FlexTk to synchronize directories' timestamps.

-streams <StreamCount>

Specifies the number of simultaneous synchronization streams.

-file_delay <delay in milliseconds>

Instructs the FlexTk's sync engine to insert a delay of X ms. after each copied file. Use this option when you need to slowly synchronize files to or from a busy production system in order to minimize the potential performance degradation.

-block_delay <delay in milliseconds>

Instructs the FlexTk's sync engine to insert a delay of X ms. after each data block. Use this option when you need to slowly synchronize files to or from a busy production system in order to minimize the potential performance degradation.

-copy_dacl

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

-copy_sacl

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

-copy_owner

Instructs to copy files' user/group information.

-v

This parameter instructs FlexTk to show the product major version, minor version, revision and build date.

-help

This parameter instructs FlexTk to show the command line usage information.