Copy FileThe Copy File object is used to copy a file or group of files from one folder to another.How it is usedUse the Copy File object to copy a file to a backup folder when a change has been made in the file.ConfigurationTo configure the Copy File object, you need to know the path and name of the source file, the path of the destination folder, and what you want to do if the file already exists at the destination.Details tab
File Type the path of the file that you want to copy. To copy all files in a folder, type the path and use wildcards in the filename portion of the path.To include sub-folders, check the Include sub-folders check box. Folder Type the path of the folder where you want to copy the file to. If the destination exists Select an option to determine what should happen if the file that you are copying already exists in the destination folder:
• Overwrite – overwrite the file in the destination folder with the file that you are copying to the destination.
• Fail – do not copy the file, and keep the file that is already in the destination folder.
• Create a file with a unique name – keep the file that is already in the destination folder and assign a unique name to the file that you are copying.Advanced tab
File age (days) Apply an age filter to determine whether the file should be copied or not.
• no age filter – copy the file without considering its age.
• is less than – copy the file if it is less than n days old. Type the number of days in the field to the right of the drop-down list.
• is more than – copy the file if it is more than n days old. Type the number of days in the field to the right of the drop-down list.Note: The age filter counts from 12:00 a.m. of the day on which you perform the operation. It does not count from the current time. Destination date Assign a date to the file that you are copying. Select an option:
• Same as original – keep the same date as the date assigned to the file that you are copying in the source folder.
• Date of transfer – assign the date on which the file is copied to the destination folder to the file that you are copying.Connection tabYou must configure a connection to a UNIX computer before you can use this object. To configure a connection, see Connecting to a UNIX Server for instructions.Select the connection name that you want to use from the Server drop-down list.Available Published Data
Name Description SSHCmdOutput The output from the executed SSH command. Status Message The status message for this object. File Name The name of the file that was copied. File name with path The full path and filename of the file that was copied. Origin Folder The name of the folder that the file was copied from. Destination Folder The name of the folder that the file was copied to. Relative Path The filename and path relative to the destination folder. Failed File Name The name of the file in the failed operation. File Count The number of successful operations Failed File Count The number of failed operations