As we transition to Pega Cloud, we aim to transfer files uploaded to the Pega SFTP internet server to our company-managed FTP server within our intranet. To achieve this, we have developed shell scripts for moving files from the Pega internet SFTP server to our company-managed SFTP server.
I would like to check if there is an out-of-the-box (OOTB) solution within Pega that facilitates the automatic movement of all processed files from the Pega SFTP server to an archive folder with in the Pega sftp server.
Example: My shell script executes at 9:30am daily
Before 9:30am files present in Pega sftp server are as follows
sftp
└── OUTGOING_FILES
├── subfolder1
│ ├── file1.txt
│ └── file2.txt
└── subfolder2
├── file3.txt
└── file4.txt
Now after the shell script execution above mentioned files will be moved to intranet ftp server. After this I want to move all the files into a different folder called archive with file name ending with dateand time stamp in the Pega sftp server
archive
└─── OUTGOING_FILES_20240101_0900
├── subfolder1
│ ├── file1.txt
│ └── file2.txt
└── subfolder2
├── file3.txt
└── file4.txt
