If you would like to mirror a website, or any part of a filesystem over the Internet, you can use rsync over ssh. Here is an example:
[opt]# rsync -e ssh -avz firstname.lastname@example.org:/opt/webroot /opt/ email@example.com's password: receiving file list ... done webroot/logs/web1.access webroot/logs/web2.access webroot/logs/web3.access webroot/logs/web4.access wrote 156644 bytes read 345589 bytes 3475.66 bytes/sec total size is 398502950 speedup is 793.46 [opt]#
Set up keys to do this automatically. Notice that this site has previously been replicated. If it hadn’t, then all files would be replicated. As it is, only the logs for web1 to web4 were replicated. If you wish the files on the target to be deleted if files don’t exist on the source, then use the –delete option. To do this from Windows, check out Cygwin.