• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Rebuild a domain

A

albertomesa

Guest
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
 
It's such a simple concept, yet I have no idea why there is no simple answer.
 
Hi there,

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

Thanks,
ALberto
 
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.
 
I replaced the new database with my psa backup, and modify the IP addresses
If you have already put your old 'psa' database in place, then the domains and users will already exist in the database.

but of course the directories, mail accounts, users, etc. do not exist.
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.
 
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
 
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?
 
Back
Top