I need to move my site from one linux VPS to another VPS, and I just need to copy over the public_html folder and probably the databases, however it is quite large(over 20gigs) so ftp is a bad choice. I was thinking of using rsync (I have root ssh for both servers vis su, but different user/pass), but I am a newb to this and all rsync tutorials I found were for local system to remote server or vice versa, I need to know how to set it up between two servers(I mean how do I provide the user/pass and directory paths for the second server?). And also, is there any other easier or simpler way where I can setup the server-server transfer without keeping another pc in between? Cause I am afraid of breaking the transfer due to power failures which is quite frequent in my region.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
Since you have root access, you can ftp (or sftp) from one server directly to the other. Or you could log into server1 and run rsync from cmd line like this: rsync -av /var/www/html root@192.168.0.100:/var/www/html replace '/var/www/html' with your folder path and replace '192.168.0.100' with your server2 ip address |
|||||
|
|
Or you can just tar the directory and use wget on other server to download it on there :) depends on your situation though, I wouldn't do that if I have super secret files to move |
|||||
|
