Transfering from another VPS company to Linode
The question is what is the best way to do this in my situation.
At the other VPS (St Louis…) I have 10 or so low traffic sites built on LEMP Ubuntu Hardy 64bit.
I am thinking it is best to get a new Linode and build it from scratch with Lucid 32 bit LEMP (or LAMP maybe).
Then I would just copy over the "virtual hosts" and the "sites-available" files and make some fine adjustments maybe.
For the database can I simply transfer over /var/lib/mysql or will there be issues because I am going from Hardy 64 to Lucid 32?
And / or is there a better way to do this?
Thanks
8 Replies
As for MySQL, I think mysqldump is the way to go, then you can just import it in the new database.
Is this correct:
> mysqldump –all-databases> backup.sql
mysql -u root -password < backup.sql
Thanks.
mysqldump –all-databases | gzip > backup.sql.gz
then transfer over ssh
and run gunzip backup.sql.gz | mysql -u root -p
That way it's compressed and SSH transfer time will be reduced
@obs:
Yep that's fine but it maybe faster to do this
mysqldump –all-databases | gzip > backup.sql.gz
then transfer over ssh
and run gunzip backup.sql.gz | mysql -u root -p
That way it's compressed and SSH transfer time will be reduced
Pfft, skip the intermediate step, pipe it right through mysqldump/gzip/ssh/gunzip/mysql in a single command without ever hitting the disk
(Note, I'm joking, although you can do this)
> mysqldump -u sadmin -p pass21 Customers | mysql –host=202.32.12.32 -C Customers
from
which basically does what you say?