View Single Post
Old 31st December 2012, 15:13
skoena skoena is offline
Senior Member
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 430
Thanks: 78
Thanked 17 Times in 14 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena

I have some additional questions.

1) How to get the backupped files to the new server and how to unpack them?
Why backup /etc? If you restore on a new server you will get problems?

2) Should I use
mysqldump --opt --user=root --password=xxxxxxxx --all-databases | gzip > mysql_backup.sql.gz
to backup db's? How to get this file to new server and how to import them back on the new server?

Tnx, Rudolf.

Originally Posted by till View Post
Here the steps:

1) Backup the following directories on the old server: /var/www, /var/vmail and /etc, ensure that you preserve permissions e.g. with "tar pczf backupfile.tar.gz /directory/to/backup".
2) backup all mysql databases.
3) install ispconfig on the new server.
4) backup the new dbispconfig database and empty the database afterwards. Then restore the database of the old server.
5) copy all users and groups of the websites (users are web1, web2, ... , groups are client1, client2, ..., etc.) from the files /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow from the old server to the new server. Copy only the lines of the users and groups, not the whole files! and make a backup of the files before you change them.
6) restore the contents of /var/vmail and /var/www on the new server.
7) restore the databases of the clients
8) Login to ispconfig, go to tools > resync, check all checkboxes and click on start and wait a few minutes to let ispconfig write missing config files.
Reply With Quote