View Single Post
  #8  
Old 1st November 2006, 12:20
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,375
Thanks: 833
Thanked 5,479 Times in 4,313 Posts
Default

Quote:
Originally Posted by eldaria
Is there perhaps a developer here who knows how ISP config behaves when importing an existing database into a clean system?

Does it create all the nessesary directories and entries in files?
ISPConfig does not recreate the items when you import a existing database, but you can manipulate the ISPConfig database to let ISPConfig behave like the webs where newly added and it will make the directories and users for you.

1) Install the same ISPConfig version then on your old system.
2) Make a backup of the new database, then replace everything in your new database with the data from your old database exxept of the tables isp_server, doctype and isp_server_ip.
3) Use e.g. phpmyadmin to set the field "status" to the value "n" (n = new) in the tables:

isp_isp_web
isp_isp_user
dns_isp_dns
isp_isp_domain
isp_isp_datenbank

4) Change one value in one website, e.g. the quota value in the ISPConfig interface and ISPConfig will start to write all websites and users to disk again.

The only thing ISPConfig is not able to restore are the passwords for the users as they are not stored in the ISPConfig database, they are only stored in /etc/shadow and if I read the thread correctly you have lost this file?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote