Backup & Restore

  • Hello,

    I have this scenario:

    1. I make a backup for /var/www/virtual/ , /var/mail/virtual, /var/imscp/

    2. I dump all databases in mysql .

    3. I new server with the same OS i do new installation of 1.5.3, after then i move back everything again

    4. Import of all databases in mysql

    5. I Back everything from the backup ->/var/www/virtual/, /var/mail/virtual/, /var/imscp/

    6. And last step i do

    Code
    1. /var/www/imscp/engine/setup/imscp-reconfigure --reconfigure

    But i get this error in :


    Code
    1. [ERROR] │
    2. │ │
    3. │ Error while performing step: │
    4. │ │
    5. │ Processing servers/packages │
    6. │ │
    7. │ Error was: │
    8. │ │
    9. │ iMSCP::SystemUser::addSystemUser: usermod: user 'vu2000' already exists


    Any idea how to fix this or step to restore my date from old server ?



    OS: Ubuntu 18.04

    OpEn YouR mINd , OpeN YouR SourcE cOdE

  • The error indicates that an user vu2000 already exists, probably from the default installation.


    Delete the entry from /etc/passwd /etc/shadow , remove homedirectory (you can find it in the passwd entry.

    Check /etc/group if there's a group for that user.


    There are also userdel/deluser commands, but I never use them …


    Than try the reconfigure again.