restoreing backup

Discussion in 'General' started by Thalid, Jul 26, 2014.

  1. Thalid

    Thalid New Member


    Debian 6 is end of support so it was time to move on to wheezy. I tryd first to update useing this guide: but broke alot of stuff and the box ended up useless.

    So then i did a new install whit same guide i used at squeeze install.

    used these commands to backup the old content
    mysqldump -u root -p dbispconfig > dbispconfig.sql
    tar pcfz ispconfig_software.tar.gz /usr/local/ispconfig
    tar pcfz etc.tar.gz /etc
    tar pcfz vmail.tar.gz /var/vmail/

    copyed the file over to the new box and used:

    mysql -u root -p dbispconfig < dbispconfig.sql
    tar zxf ispconfig_software.tar.gz -C/
    tar zxf vmail.tar.gz -C/

    i did not restore files from etc.tar cause this breaks things

    The problem im left whit is:
    Cant log into ispconfig (can i change the password whit phpmyadmin?)
    Empty mailboxes (users can log in)

  2. srijan

    srijan New Member HowtoForge Supporter

    You can use this thread' script for proper backup/update of the server.

    In your case you have to open the database in phpmyadmin first where you should import t the sql file then you should try to login to ISPConfig web interface.
  3. Thalid

    Thalid New Member

    mysqldump -u root -p --all-databases > /home/backup/sqlall.sql
    and import it whit phpmyadmin solved the login into ispconfig.

    Problem left is that the mail boxes shows up empty when login, ewen if ispconfig shows the mail boxes and the correct sizes of them.

    i did not figure out how to get the script to work. it trows out error in line 100 ore something after editing it domt remeber excatly havent relly had the time sinze my last post either to try to figure this out.

Share This Page