scp is Secure CoPy.
In your case, it's rather sftp [
http://en.wikipedia.org/wiki/SSH_file_transfer_protocol ] that I would use.
It's a sort of FTP stacked over a crypted channel, used to transfer files from a computer to another.
if you have a shell access on both computer, you can log on your first server, and issue a:
where you want to make the backup. This will create 1 big ball, with all your files in it.
Then, you transfer it on the other host:
Code:
scp bkp.tar username@name_of_the_server:/emplacement_to_put_the_file
Once it's over, you simply log on your new server, go to the destination of your files, and type:
and the exact same file structure will be recreated.
You might want to re-attribute the ownership of the files though, as the user and group id of the 2 servers are 100% certain to be different:
Code:
chown -R user:group * [enter]
chmod -R u+rwx,g+rx,o+rx,o-w [enter]
which will reassign every files and set pack usual permissions. You might need to restore specific "777" permissions on some directory, but you only can know that.
Otherwise, it may be slow, but you'll need to go the ftp way.
There is no voodoo, you must transfer the datas, and it can take some time.
Oh, and take care of the databases too, this is only valid for files.
Database transfer is something completely different.