tags:

views:

123

answers:

2

I want to mirror only some files "Not directory". I know PHP ftp function and using them as well, just want to know if any way i can make server to server FXP working.

i saw CLI tool lftp but it mirrors dir only. And if there is some other tool that can fxp the files.

A: 

You should be using rsync to do this.

Directly from their site:

rsync is a file transfer program for Unix systems. rsync uses the "rsync 
algorithm" which provides a very fast method for bringing remote files into 
sync. It does this by sending just the differences in the files across the 
link, without requiring that both sets of files are present at one of the 
ends of the link beforehand.

Some features of rsync include

    * can update whole directory trees and filesystems
    * optionally preserves symbolic links, hard links, file ownership, 
      permissions, devices and times
    * requires no special privileges to install
    * internal pipelining reduces latency for multiple files
    * can use rsh, ssh or direct sockets as the transport
    * supports anonymous rsync which is ideal for mirroring 
mmattax
A: 

You could connect to the 2 servers and give the FXP commands manually.
There is an nice example on Wikipedia's - File eXchange Protocol page

Bob Fanger