HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Migrate to new server (

skoena 26th July 2012 21:41

Migrate to new server
My server needs to be upgraded to Ubuntu 12.
What are the right steps to "easily" migrate to the new server?
(db's, data, mail, ispconfig etc)

skoena 8th August 2012 15:11

Pffff as a linux noob this is some job.....

For example on the old server I want to copy /var folder (using scp) to the new server keeping file permissions. I tried to copy them but access is denied because only root can copy these files?

I used

scp -rp /var administrator@newserver:/var
Is this command correct?

How can I get root access to the new server to be able to copy the files to the new server?

falko 9th August 2012 15:56

On Ubuntu, you must enable the root account by setting a root password:


sudo passwd root

skoena 10th August 2012 15:30

Did it but when trying to connect I get Permission denied.


ssh root@myip
root@myip's password:
Permission denied, please try again.

skoena 10th August 2012 15:34

Changed "PermitRootLogin yes" in /etc/ssh/sshd_config and restarted ssh

service ssh restart
and it works now!

skoena 10th August 2012 15:43

2nd question.

I want to copy the files from the old server to the new server. How should I do this? I want to keep the permissions and owners like it is on the old server.

falko 12th August 2012 13:43

You can do this with rsync:

zbuzanic 12th August 2012 19:12

Hi, I had a need to move twice so first time I've just compressed www and copied on new server with ispconfig and recreated pages. Dunno why but I had troubles with server after doing that. Server would randomly crash. Anyway then I moved to another server but this time I've rsynced almost everything. Problem is I've already installed ispconfig with tutorial and then moved all data. That caused some trouble with cron, mysql, and user accounts but it was all fixable (config files or passwords were wrong) and it's working now without a problem, So rsync worked for me great. Anyway what failed is ssh logins, dunno why but whatever I did, I was unable to login to new server so I had to delete and create again ssh account for all users.

skoena 13th August 2012 12:48


Originally Posted by skoena (Post 282802)
My server needs to be upgraded to Ubuntu 12.
What are the right steps to "easily" migrate to the new server?
(db's, data, mail, ispconfig etc)

There's a saying in Dutch (in my best English translation): I don't see the forrest because of all the trees.
Untill now it's not clear how to do a "good" migration to a new server. Is it an idea to create a sticky about this?

*I copied (with rsync) all the data from
(databases were not available on new server when I did this, so I dumped the db's on the old server and copied them to the new server with:

mysqldump --opt --user=root --password=xxxxxxxx --all-databases | gzip > mysql_backup.sql.gz
) For some reason the dbispconfig database was not imported so I imported it by hand via phpmyadmin.

Do I need to copy more or is this enough??
Is there anything I missed?

skoena 3rd September 2012 12:43

Idea to create write a sticky or howto how to backup a server running ispconfig and restoring it to a new server?

I now try to combine a lot of posts but still not clear what to do and which steps to do.


All times are GMT +2. The time now is 07:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.