Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

File TransferCloud 0
Template NameExtension NameExtension Version
Cloud ue-cloud-ft1.0.0 Data Transferue-cloud-dt2.0.1

Refer to Cloud Data Transfer for version history information.

...

  • Create required Resolvable Credentials. Required as Input Fields on the Universal Task Configuration.
  • Create a new Script of type Data, for the Configuration File and populate it according to the following section of Setup Rclone Configuration File. Required as Input Fields on the Universal Task Configuration.
  • Create a new task, and enter the task-specific details that were created in the Universal Template.

...

  1. The configuration file is following the INI format, and contains all required parameters and credentials to connect to a Storage System. All configuration options per Storage System can be found in the respective "Config Rclone documentation" here.

  2. It is advised that account credentials, tokens, or any other essential information to be passed as an encrypted Resolvable Credential field. To set a value with the respective Credential field, please make sure to use the appropriate Credential function inside the configuration file.

    Note

    'Runtime Password' Credentials field supports values with up to 512 characters.

    Hard coded values can be provided in the script file, as well. However, it is not advised for security reasons.

  3. It is recommended to configure a storage system section, one to one with the Credential fields in this Universal Extension (please refer to the Input Fields section below).

  4. For local file system Storages, no credentials are required in the configuration file. The selected action will be executed with the Credentials that are provided in the "Agent Details" of the Universal Task. If no Credentials are provided for the used Agent, then the same user that runs ubroker daemon will be used.

  5. Script Type should be Data, and option Resolve UAC Variables should be enabled.

...

FieldInput typeDefault valueTypeDescription
ActionRequiredCopy ObjectsChoiceAction to be performed.

Available actions:
  • Copy Objects
  • Copy And Rename
  • Copy From URL
  • Move Objects
  • Move And Rename
  • List Objects
  • List Directories
  • List Objects With Details
  • List Objects In JSON Format
  • Create Object
  • Delete Object
  • Delete Empty Directory
  • Synchronize
Configuration FileRequired-Script

Rclone Configuration file, that contains all required parameters to connect to the Storage System, Source Storage and Target Storage. It is indicated to provide an extension suffix as part of the file name.

Example: rclone.conf 

Storage SystemOptional-Dynamic Choice FieldRemote or Local storage to execute the selected Action.
Execute the Dynamic Choice Field and retrieve all the available Storages from Configuration File.

Required when one of the Single storage actions is selected.
Source StorageOptional-Dynamic Choice FieldRemote or Local source storage, where transfer Action is initiated.
Execute the Dynamic Choice Field and retrieve automatically all the available Storages from Configuration File.

Required when one of the Two storage actions is selected.
Target StorageOptional-Dynamic Choice FieldRemote or Local target storage, where transferred data is stored.
Execute the Dynamic Choice Field and retrieve automatically all the available Storages from Configuration File.

Required when one of the Two storage actions is selected.
Storage CredentialsOptional-CredentialCredentials needed to connect to the selected Storage System.

Required when one of the Single storage actions is selected.

For Storage System of type local, the standard Agent's Credentials field should be provided.
Source CredentialsOptional-CredentialCredentials needed to connect to the selected Source Storage.

Required when one of the Two storage actions is selected. For Storage System of type local, the standard Agent's Credentials field should be provided.
Target CredentialsOptional-CredentialCredentials needed to connect to the selected Target Storage.

Required when one of the Two storage actions is selected.

For Storage System of type local, the standard Agent's Credentials field should be provided.
FilepathOptional-TextFile or directory path from where to retrieve data for the selected Action.

Required when one of the Single storage actions is selected.
Source FilepathOptional-TextFile or directory path from where to retrieve data for the selected Action.

Required when one of the Two storage actions is selected.
Target FilepathOptional-TextFile or directory path where transferred data to will be stored for the selected Action.

Required when one of the Two storage actions is selected.
Update CredentialsOptionalFalseBooleanThis field needs to be used when Rclone executable updates Fields on its Configuration File during execution, that need to be stored as Credential Fields on the Universal Controller.

For example: when OneDrive Storage type is used. In this case, the existing configured token is exchanged by Rclone with a new one to establish the connection. This new token should be stored on Universal Controller for the next task execution. Please read Rclone limitations on OneDrive token refresh here.

This field is used in conjunction with fields Controller URL, Controller Credentials, Refresh Storage Credentials.
Controller URLOptional-TextController URL where Storage Credentials, Source Credentials, Target Credentials are stored.

Required when Update Credentials is checked.
Controller CredentialsOptional-CredentialsController user's credentials, used for logging and updating Storage Credentials, Source Credentials, Target Credentials will be updated. The Credentials definition should be as follows:
  • User as "Runtime User".
  • User Password as "Runtime Password".
Note: The provided user should have sufficient Credential permissions.

Required when Update Credentials is checked.
Refresh Storage CredentialsOptional-ArrayThis Array field is available when Update Credentials is set to True and used as a mapping table that indicates which field from the Configuration File of Rclone is used to update which Credential entry field on Universal Controller.

Populate this array with the following format:
  • Configuration File Details: "<Storage/Source/Target Storage>"."<Configuration File's field to be refreshed by Rclone>"
  • Storage Credentials Details: "<Storage/Source/Target Credentials name>"."<Storage/Source/Target Credentials field to be updated>"
The result of this action is that the Configuration file's field value, is copied to the provided Storage Credential's field. Each line of this Array is evaluated, and related mapping is performed.
Note: Refresh of Storage/Source/Target Credentials is performed via Controller's REST API. See Network and Connectivity Requirements
Use FilterOptional-- None --ChoiceThe filter type that is applied on the Action.

Available options:
  • -- None --
  • Include
  • Exclude

Optional for all, but list type Actions.
FilterOptional-TextFilter as regular expression that is applied on the Action.

Required when Use Filter is checked.
Overwrite OptionsOptionalDo Not OverwriteChoiceOptions for overwriting files in the Target Storage.

Available options:
  • Overwrite
  • Do Not Overwrite
  • Append Timestamp In Filename

Optional when one of the Two storage actions is selected.
Recursion DepthOptional1IntegerRecursion depth that is applied. Default value 1 means that no recursion will be applied.

Note: Use this option with caution when one of the following Actions are selected, as this might result in doing actions on unnecessary files/cloud objects. For more information on Recursion Depth you can refer to the official Rclone documentation:
  • Copy Objects
  • Copy And Rename
  • Move Objects
  • Move And Rename
  • Delete Object
  • Delete Empty Directory
  • Synchronize
Error On No File TransferOptionalFalseBooleanWhen enabled and when no files are transferred, a failure exit code with value equal to 21 is raised.

Optional when one of the Two storage actions is selected.
Dry-RunOptionalFalseBooleanWhen enabled, performs a trial run with no permanent changes of the selected Action.

Note: It is recommended to execute a Dry-Run as a test prior to the final task configuration when the following Actions are used:
  • Copy Objects
  • Copy And Rename
  • Move Objects
  • Move And Rename
  • Delete Object
  • Delete Empty Directory
  • Synchronize
Additional OptionsOptional-TextSpace separated Rclone options that applied to the selected Action.
Log FormatOptionalTextChoiceOption for STDERR logging format.

Available options:
  • Text
  • JSON
  • .

...

AttributeTypeDescription
cmdstringThe Rclone generated and executed command based on the input fields.
rcnumberThe Rclone native return code. More information about Rclone exit codes can be found here.

An example of the Extension Output for a "Copy Objects" Action is presented below.

...

Document LinkDescription
Universal TemplatesUser documentation for creating Universal Templates in the Universal Controller user interface.
Universal TasksUser documentation for creating Universal Tasks in the Universal Controller user interface.
RcloneRclone official documentation.
Rclone InstallInstallation instructions.
Rclone DownloadsDownload links for Linux, Windows, MacOS.
Rclone Storage Systems configurationConfiguration file details.
Rclone Exit CodesRclone exit codes list.

Changelog

ue-cloud-dt-2.0.1 (2023-07-28)

Fixes

Fixed: Retrieving STDOUT/STDERR might block a Task Instance in Running status (#33732).

ue-cloud-dt-2.0.0 (2022-10-26)

...