First of all. I have found answers to almost every question I've had on this forum.

And I'm happy no one just says RTFM.
Ok, I'm moving a site from an unknown set up to cpanel on a vps. All I have from the old host is a gzip of the files and folders. Not of the account information. I want to know if I can use SSH to grab the files from the old host and unzip them on the new host. So I don't have to download/upload them, I'm lazy like that.
I did find an old post that explaned a little:
Quote:
ssh to the old server
for the php, html...etc... i use
tar cf public_html.tar public_html
for the databases
mysqldump --opt -uUSERNAME -p databasename > /path/to/dump.sql
move them to a folder and tar cf again...
after that... try gzip to compress more
now you will have all the data....it's time to restore them on the new server
ssh to the new server
wget h**p://the_old_server_file....
on your directory
to extract gz use
tar -zxvf whatever.gz
when you want to restore your databases... use
mysql -uUSERNAME -p newdbname < /path/to/dump.sql
good luck
|
Would this method work for what I'm doing? I'm new to SSH but I'm a quick learner.
Thanks for the help!