Copying files from one server to another server?

Hi all,

In Server1, one directory contains files now. In this directory, based on some operations, daily some files will generate and store regularly.
Now i want to copy the files to Server2 through SFTP/FTP command on daily based on the previous day present data(i.e based on the latest file date) in Server2 directory.

Example:

In Server1: Files from 01/08/2014 to 29/08/2014.

In Server2: But in this server,

Requirement-1:
i want to copy the files from Server1 based on the latest copied file date in server2 ( i.e when i run on 20/08/2014 i want to know which files with latest date copied. If i have the latest one 19/08/2014 in Server2), whenever i run the script that day files will copy to server2.

Requirement-2: (based on requirement-1)
If i wont run on any day (ex 22/08/2014) or in weekends that day(s) files i missing. So, i want to copy from these days too, on the next run.

Can you please provide the Shell script for this.

Thanking you.

Help doesn't mean doing the work for you�
What have you tried so far?