1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Rebuild a domain

Discussion in 'Plesk for Linux - 8.x and Older' started by albertomesa, Mar 10, 2005.

  1. albertomesa

    albertomesa Guest

    0
     
    Here is my situation:

    1 - I have a backup of the psa database.
    2 - I have a backup of the domain files on tape
    2.a - The backup was made with a backup utility not from plesk. It includes the httpdocs and httpsdocs directories.

    Now, I have a new installation of Plesk in a different server. I replaced the new database with my psa backup, and modify the IP addresses, but of course the directories, mail accounts, users, etc. do not exist.

    My question:

    Is there a command to tell Plesk to rebuild all the domains? After this, I'll dump my data backup on the directories.

    Thanks for your time,
    Alberto
     
  2. Decius

    Decius Guest

    0
     
    It's such a simple concept, yet I have no idea why there is no simple answer.
     
  3. albertomesa

    albertomesa Guest

    0
     
    Hi there,

    just asking this question again. Maybe this time somebody have an idea.

    Thanks,
    ALberto
     
  4. JLChafardet

    JLChafardet Regular Pleskian

    26
    57%
    Joined:
    Feb 20, 2004
    Messages:
    379
    Likes Received:
    0
    Location:
    Caracas - Venezuela
    my best recommendation for you is to use psadump.

    I have done some migrations already with it, and it works good (if used properly) i dont split as linux doesnt have a file size limit (at least i havent reached it).

    if you dont have the dump why dont you try copying the structure of the old server to the new.
     
  5. jamesyeeoc

    jamesyeeoc Guest

    0
     
    If you have already put your old 'psa' database in place, then the domains and users will already exist in the database.

    They won't until you "dump my data backup on the directories". Eventhough they do not exist now, when you 'dump' your backup onto the new server, it should create the directories as it goes.

    Make sure you do the /var/qmail/mailnames and /home/httpd/vhosts. This will give you the Qmail user directories and any contents at the time of the backup, and of course the /home/httpd/vhosts/ will give you all the domain's site files.

    Plesk AFAIK does not have a utility to 'recreate' the empty structures from the domain and user data in the database.
     
  6. JLChafardet

    JLChafardet Regular Pleskian

    26
    57%
    Joined:
    Feb 20, 2004
    Messages:
    379
    Likes Received:
    0
    Location:
    Caracas - Venezuela
    and /var/named/run-root

    for the named config files.
     
  7. albertomesa

    albertomesa Guest

    0
     
    Thank you guys!

    I'll modify some of my scripts to include all the directories you mentioned.

    Linux potential problems though:

    - when recovering from a backup - Linux User ID permissions problems
    - etc/passwd file? all messed up. The user may exist in Plesk but I'm not sure they are created in the /etc/passwd file.

    Any other problems you may think of?

    BTW, psadump: does it take the domain offline while dumping?

    Regards,
    Alberto
     
  8. jamesyeeoc

    jamesyeeoc Guest

    0
     
    True about files such as /etc/passwd but these are the little things that an admin must find and fix when doing manual stuff like this... Good thing you've got access to the original server files, right?
     
Loading...