Migration of RoR applications to a new server

I did simply a secure copy from the old server to the new one:

$ scp -pr MyRailsWorkDirectory username@hostname-or-ip:directory/

where "MyRailsWorkDirectory" is my rails work dir from the old server,
"user" is a username created to the new server, and "directory/" is the
directory where the MyRailsWorkDirectory will be moved on. The initial
location is the home directory of the "username". Note that ":" is not a
port symbol.

In order to migrate all my mysql databases i first did a backup:

$ mysqldump -u root -p --all-databases > backup.sql
(*** there is no need to stop the databases during backup. MysqlDump
blocks all databases during backup process ***)

and after trasfering backup.sql (i used again scp to do this) to the new
server i restored all with:

$ mysql -u root -p < backup.sql

The migration was completely successful acting in this way.

Vaggelis Typaldos wrote: