Page 1 of 1

Help, The flow...

Posted: Thu Apr 12, 2007 12:44 am
by phpwalker
Hi everyone, is me again, the problem maker. haha

So, basically I've two servers which one allocated at data center, and another one at office.

Office server hosted an application(internal use only) that wanted to pull data from server at data center everyday. Data center hosted am application that can be used by everyone around the world.

My problem is, how do I download the files from another server without saving it manually? What i means is, when people in office click on the accept button on the web page at data center server, the file will be storing into office local server automatically in the background. Let say the file is XML document.

How do I accomplish this? Any idea? Both side using same platform - linux, server side scripting using PHP, database using MySql.

Posted: Thu Apr 12, 2007 4:50 am
by Kieran Huggins

Posted: Thu Apr 12, 2007 2:02 pm
by John Cartwright
svn would be nice to implement :wink:

Posted: Thu Apr 12, 2007 5:02 pm
by timvw
I'd probably write a simple bash script that copies something over scp... (and make use of pub/priv keys to do the authentication)

scp user@source:/path/to/file me@destination:/backup/file

Posted: Thu Apr 19, 2007 9:38 pm
by phpwalker
Thanks a lot guys, yours opinion helped me a lot.