Migrating from ispc3 to another box.

Discussion in 'Installation/Configuration' started by HellMind, Oct 3, 2012.

  1. HellMind

    HellMind New Member

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Does your old server use courier or dovecot pop3/imap server?
  3. HellMind

    HellMind New Member

    I dont got many emails account configured.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. The folder structure for courier and dovecot is different, so this makes the migration a bit more complicated. I will refer to that later.

    The guide you posted above will not work as a lot of things are missing.

    The steps fro a migration are:

    1) Backup the following directories on the old server: /var/www, /var/vmail and /etc, ensure that you preserver 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 onle the lines of the users and groupsmĀ“, 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) Now we have to fix the maildir structure. See: http://www.howtoforge.com/forums/showthread.php?t=57716
    9) 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.
  5. HellMind

    HellMind New Member

    Is there a way to export and import client by client?

    So i can test if everything is working step by step?

    because some client didnt use email at all, and

    Also, maybe is easier to create the client manually.

    Maybe the easiest way to do it, its creating the clients/sites/dns/mails by hand and copy the web files ?
  6. till

    till Super Moderator Staff Member ISPConfig Developer


    This depends on your personal preferences and how many clients you have.
  7. HellMind

    HellMind New Member

    got symlink to /var/clients
    Should I backup /var/clients instead?

Share This Page