# copy files from remote linux host to another remote linux host with one to one mapping of hosts.

**URL:** <https://forum.ansible.com/t/copy-files-from-remote-linux-host-to-another-remote-linux-host-with-one-to-one-mapping-of-hosts/28755>\
**Category:** Ansible Project\
**Created:** [October 10, 2018, 8:59am UTC](https://forum.ansible.com/t/copy-files-from-remote-linux-host-to-another-remote-linux-host-with-one-to-one-mapping-of-hosts/28755 "2018-10-10T08:59:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhizersaifee03](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@abhizersaifee03](https://forum.ansible.com/u/abhizersaifee03)\
**Post date:** [October 10, 2018, 8:59am UTC](https://forum.ansible.com/t/copy-files-from-remote-linux-host-to-another-remote-linux-host-with-one-to-one-mapping-of-hosts/28755/1 "2018-10-10T08:59:31Z")

</div>

I have 100 old servers having some different applications and 100 new servers as old’s replacement. I want to copy the log files of old servers to its respective new server using Ansible. How can I do it. It looks something as shown below.

Server 1\_old → Server 101\_new

Server 2\_old → Server 102\_new

Server 3\_old → Server 103\_new

Server 4\_old → Server 104\_new

. .

. .
