How to get file from other server?

Hi ii have 2 server with deferent IP

In the first i have this file

in var/etc : file1 / file2

ho to get it in the second server

i use debian server

How about FTP?

no, with script
i can give you my script

Sure, post it and let us know the issues if any...

Why not SCP command?

http://www.computerhope.com/unix/scp.htm#01

in Pm thank's

I'm sorry, you cannot pm, you have to discuss it in this thread if you need any assistance from any members including me.

Let us know what method you are following in your script and issue(s) that you are facing.

thank you man

If the same username is having access on both the server then u can try out this.

for HOST in server name; do scp file1 $HOST:path where you want to copy; done

But make sure you run this command from the exact location of file in first server.Other wise in place of file 1 you need to give complete location of that file.