I want to make mirror (duplicate) mywebsite to other server/other locate.
www.abc.com ( in server A) to www.abc.com (in server B)
I have both login + password
How I can fast copy data from server A to server B fast via FTP (or scripts or other methode)?.
Now I must download all my data from server A to my harddisk then upload from my harddisk to server B. If I can copy direct from server A to server B is very fast!
can any body help me? Thanks!
Originally posted by giza
I want to make mirror (duplicate) mywebsite to other server/other locate.
www.abc.com ( in server A) to www.abc.com (in server B)
I have both login + password
How I can fast copy data from server A to server B fast via FTP (or scripts or other methode)?.
Now I must download all my data from server A to my harddisk then upload from my harddisk to server B. If I can copy direct from server A to server B is very fast!
Why restrict yourself to FTP?
It's much easier with SSH. For example:
scp -r /home/sites/www.mysite.com/web/* username@otherserver:/home/sites/www.mysite.com/web
Or even better with rsync (much faster):
rsync -avzr /home/sites/www.mysite.com/web/* username@otherserver:/home/sites/www.mysite.com/web
You could even put these in cron to run automated every hour or similar.
If you really do have to go by FTP, you could do something like this (on the destination server):
cd /home/sites/www.mysite.com/web/
wget --mirror -g=on ftp://username:password@www.mysite.com/web/*
Mirage-ISP
02-01-2002, 06:56 AM
Only reason am not too crazy about proftp (though its more secure than Wu) is that it doesnt provide for fxping. (If it is, someone, please let me know)
Site to site transfer would really be excellent, and easy, via an ftp client, wouldnt it? I like your suggestions too Jk. Am yet to try this one : wget --mirror -g=on ftp://username:password@www.mysite.com/web/*
Thanks to JKS!
I am not familiar with unix command
I try your commands (copy via FTP) :
on Destination server :
cd /home/sites/www.mysite.com/web/
I choose menu : SEND RAW FTP COMMAND :
wget --mirror -g=on ftp://USERNAME:PASSWORD@www.MYSITE.com/web/*
I see FTP program check the server and give login + pass, success enter...but
I found error :
Server error (500), Check transcrip Window, 500 WGET not understood
I am sorry this is a stupid questions :
What exact must I write?
* is similar *.* on PC DOS?
thanks
my site 1 server which I want to copy to destinations is RAQ2..is this the problem?
Originally posted by giza
my site 1 server which I want to copy to destinations is RAQ2..is this the problem?
No, that's not a problem.
You weren't meant to enter these commands in your FTP program. These commands are to be entered using a telnet / ssh shell connection.
Thanks JKS, to spend your time for me!
I think some body know PHP scripts or similar to do like it?
Thanks
Originally posted by giza
Thanks JKS, to spend your time for me!
I think some body know PHP scripts or similar to do like it?
I think you migth be looking for something more "advanced" than is really called for. There is absolutely no reason to use PHP or similar software.
If your server haven't got the SSH software already, it's probably about time to get it installed anyways (telnet is in-secure). Cobalt has released a PKG that should be quite easy to install.
Afterwards, doing a site mirroring is a simple matter of one command.
No need for scripts or extra programming.