Execute a File Operation Copy with Variables
Hello - is it possible to use variables or wildcards in a Copy File Operation?
I have a scheduled task with four actions:
Step 1: I am pulling a set of files via SFTP from an external SFTP server using the {{T}} variable to append the Linux date/time to the beginning of the files.
Step 2: I am launching powershell and calling a script to convert the Linux epoch date/time into human readable date/time and renaming the files with the human readable format.
Step 3: Issuing a Copy File Operation to copy the newly renamed file to another server - what do I put in the File Path From and File Path To allowing the copy of all the files in the original directory to the new server?
Step 4: Issuing a Move File Operation to move the newly renamed file to a "processed" folder on the Cerberus server. Same questions about what I put in the From and To paths?
Thank you!
-
Hello,
Using Cerberus Enterprise, I do believe we have a way to set this up. You'll need two scheduled tasks. The first of the two will be completing the first two steps, while the second will take care of the copy and move portion. To utilize wildcards, you'd want to configure a Folder Scanning event, that will watch a folder and execute your event based on the criteria you enter within the event. If you run across any issues while configuring your events, we encourage you to submit a support ticket so we can take a look at what's going on.
0 -
Thank you Connor Woolfolk, I will give that a try!
0
Please sign in to leave a comment.
Comments
2 comments