PDA

View Full Version : SSH to copy from other site?


emiratesmac
05-04-2007, 12:46 PM
I've just signed up with a Linux Plesk VPS and in the coming week or so I'm transfering our present site to the new account. Fortunately our site is not that big yet (a couple of gigs in files, and a few hundred meg in databases), so it shouldn't be a big deal. I know what to do with the databases, and I guess I could just download all the files, then upload them again, but isn't there a way to go from server to server with SSH? I guess I could SSH into one site, then do CP or something. Is it doable and do you know of any resource that could help?

Magnus

Amano
05-04-2007, 10:13 PM
# wget http://www.your-website.com/files.tar.gz

ikaruz
05-05-2007, 08:52 AM
You may use scp

use "man scp" or "scp --h" for help on scp ussage.

DavidP
05-06-2007, 09:41 AM
tar zcpf /root/files.tar.gz /home/files;tar zcpf /root/databases.tar.gz /var/lib/mysql/databasedumpfilesdirectory;scp /root/files.tar.gz 123.123.123.123:/home;scp /root/databases.tar.gz 123.123.123.123:/var/lib/mysql;rm -f /root/files.tar.gz;rm -f /root/databases.tar.gz