Networking, Programming and Graphics Tutorials

Restore Plesk domain form slaved drive in Linux [2/5]

In case you have subdomains that you need to restore as well you have to add teh subdomain in Plesk first and then execute the command below.

cp -R /mnt/old_drive/var/www/vhosts/domain.tld/subdomains/subdomain/httpdocs/* /var/www/vhosts/domain.tld/subdomains/subdomian/httpdocs/
After coping the data you will need to run the following command in ssh terminal with root privileges to fix the permissions, where user is the ftp username you configured for the physical hosting corresponding to domain.tld

chown -R user:psacln /var/www/vhosts/domain.tld/httpdocs/*

And for subdomains is:

chown -R /mnt/old_drive/var/www/vhosts/domain.tld/subdomains/subdomain/httpdocs/*
Networking, Programming and Graphics Tutorials - Restore Plesk domain form slaved drive in Linux [2/5] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: restore from slaved drive  restore plesk domain  restore plesk domain  restore domain with plesk  plesk domain restore  Restore a domain + Plesk Restore  linux plesk open_basedir one domain  plesk .conf domain  open_basedir in plesk for a domain  duplicate domain plesk