Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/8924bff6-ffce-4aff-a161-138e3741236c.jpg?itok=HwEKuMSW)
Central Provident Fund Singapore (CPF)
SG
Last activity: 14 Jul 2024 21:51 EDT
do we have any OOTB logic to move the files/folders that have already been processed, to an archive folder in pega sftp server
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