Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
Nordea
SE
Last activity: 15 Sep 2016 0:16 EDT
Transfer of archival files
Archival files are storing into the Server space so it gradually reduces the space. We would need to transfer the archival files from Server space to new shared location by a backend process. What should be the proper approach for 6.1 SP2?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
Nordea
SE
Hi Harish,
I am able to meet the requirement by writing JAVA steps considering destination and target paths in servers. I am taking required files as string and moving to desired destination in byte stream. Thanks for your replies.
Regards,
Kousik
Updated: 20 May 2016 3:42 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2025-01/80f151c6-644b-4685-92c1-375e470fc75b.jpeg?itok=MdTVYRQw)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2025-01/80f151c6-644b-4685-92c1-375e470fc75b.jpeg?itok=MdTVYRQw)
Pegasystems Inc.
US
Hi Kousik,
If you are just looking to transfer/move the archival files from PRPC server space to new location, you can go with (server)OS specific scripts to move files to the shared location.
Let me know your views or any concerns.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
Nordea
SE
Hi Harish,
Thanks for your reply. This transfer of file needs to be regular. So I am considering an agent to achieve this. But not sure if we need any java steps or any FTP protocol. Please elaborate or provide example how to use OS specific scripts(I guess, Shell script) in activity?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
Nordea
SE
Hi all,
If you have any idea on the discussion please reply.
I could use powershell script to move the files like below:
$server1 = "C:\Users\Administrator\AppData\Local\Temp" ## enter current source folder
$server2 = "C:\Users\Administrator\AppData\Local\Temp\Target\" ## enter your destination folder
foreach ($server1 in gci $server1 -include *.bak -recurse)
{
Move-Item -path $server1.FullName -destination $server2 ## Move the files to the destination folder
}
I am not sure how to use this in Pega 6.1?
Updated: 22 May 2016 21:51 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2025-01/80f151c6-644b-4685-92c1-375e470fc75b.jpeg?itok=MdTVYRQw)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2025-01/80f151c6-644b-4685-92c1-375e470fc75b.jpeg?itok=MdTVYRQw)
Pegasystems Inc.
US
Hi Kousik,
As you are trying with a PowerShell script, I'm assuming you have a windows server. Why don't you automate this script task by scheduling it. I don't think you need a separate agent and java code for this basic tasks like file movement.
For more info:- Using Task Scheduler to automate PowerShell Scripts (144451)
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/35e2644e-b2a9-477f-bb9a-5fa4dbca4568.jpg?itok=-r_MXssH)
Nordea
SE
Hi Harish,
I am able to meet the requirement by writing JAVA steps considering destination and target paths in servers. I am taking required files as string and moving to desired destination in byte stream. Thanks for your replies.
Regards,
Kousik
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
COGNIZANT TECHNOLOGIES SERVICES PVT LTD
IN
Hi Kousik,
I've the same requirement to develop. Could you please help me with approach you tried?