# copy file from external ftp to pega ftp

**URL:** <https://forums.pega.com/t/copy-file-from-external-ftp-to-pega-ftp/5317>\
**Category:** Pega-as-a-Service\
**Tags:** cloud-services, system-administration, 8-7-5, data-integration\
**Created:** [November 3, 2023, 6:42am UTC](https://forums.pega.com/t/copy-file-from-external-ftp-to-pega-ftp/5317 "2023-11-03T06:42:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AjayKumarK7664](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AjayKumarK7664](https://forums.pega.com/u/AjayKumarK7664)\
**Post date:** [November 3, 2023, 6:42am UTC](https://forums.pega.com/t/copy-file-from-external-ftp-to-pega-ftp/5317/1 "2023-11-03T06:42:21Z")

</div>

We have a requirement to copy the file from external FTP to Pega FTP. We see that with Connect-FTP , we can only transfer file from Pega FTP to external but not vice versa.

Please let us know if we have any OOTB functionality in pega to copy file from external ftp to pega.

---

<div class="post-metadata">

**Author:** ![Anthony\_Gourtay](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anthony_gourtay/32/5682_2.png) [@Anthony\_Gourtay](https://forums.pega.com/u/Anthony_Gourtay)\
**Post date:** [November 6, 2023, 1:01pm UTC](https://forums.pega.com/t/copy-file-from-external-ftp-to-pega-ftp/5317/2 "2023-11-06T13:01:11Z")

</div>

@AjayKumarK7664

Hello,

I’m not convinced that it’s up to your PEGA Application to do all.

Do you need the file in a repository that your PEGA Application can read or you need to receive the content as a stream to be read.

If it’s from one external FTP to your own FTP server then it could be done via typical scripting from source server.

I usually consider that source server only will know when the file is ready so it’s its responsibility to send the file when ready.

Well, depends on your global setup & capability.

Regards

Anthony

---

<div class="post-metadata">

**Author:** ![AnshumanM1959](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@AnshumanM1959](https://forums.pega.com/u/AnshumanM1959)\
**Post date:** [July 18, 2024, 7:32pm UTC](https://forums.pega.com/t/copy-file-from-external-ftp-to-pega-ftp/5317/3 "2024-07-18T19:32:57Z")

</div>

@Anthony\_Gourtaydo you have any sample script in python or shell , i just want to refer .

---

<div class="post-metadata">

**Author:** ![BhanuPrasanthT1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhanuprasantht1/32/22716_2.png) [@BhanuPrasanthT1](https://forums.pega.com/u/BhanuPrasanthT1)\
**Post date:** [July 19, 2024, 3:12am UTC](https://forums.pega.com/t/copy-file-from-external-ftp-to-pega-ftp/5317/4 "2024-07-19T03:12:46Z")

</div>

@AjayKumarK7664

you can have a client setup and pull the files to your ftp which is an alternative way to this approach

with this you can periodically retrieve files and place in your app server location so that pega can consume the files
